at.ac.tuwien.infosys.sm4all.copal.api.service
Interface ContextState

All Known Implementing Classes:
ContextStateImpl

public interface ContextState

Interface which COPAL core provides to retrieve current context state i.e. latest published events.

Author:
sanjin

Method Summary
 ContextEvent getCurrentEvent(java.lang.String eventName)
          Returns current ContextEvent that has type equal to specified event name.
 ContextEvent[] getCurrentEvents()
          Returns all current ContextEvents.
 

Method Detail

getCurrentEvents

ContextEvent[] getCurrentEvents()
Returns all current ContextEvents.

Returns:
all current ContextEvents.

getCurrentEvent

ContextEvent getCurrentEvent(java.lang.String eventName)
Returns current ContextEvent that has type equal to specified event name.

Parameters:
eventName - the name of the ContextEventType.
Returns:
current ContextEvent that has type name equal to specified eventName or null if such ContextEvents was never published.


Copyright © 2010 Distributed Systems Group, Vienna University of Technology. All Rights Reserved.