|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.fhg.igd.jhsm.HSMContext
A generic context.
Field Summary | |
private Map |
dataStore_
A general purpose data container that can be used by actions to share information. |
private EventBus |
dispatcher_
The event dispatcher associated with the hsm to which the context belongs. |
private Event |
trigger_
Some actions are performed because a trigger event has been received. |
Constructor Summary | |
HSMContext()
|
Method Summary | |
Object |
get(String key)
Returns the object that was associated with a given context key. |
EventBus |
getEventDispatcher()
Returns the event dispatcher associated with the hsm to which the context belongs. |
Event |
getTriggerEvent()
Returns the trigger event. |
Object |
remove(String key)
|
void |
set(String key,
Object value)
Associates the specified value with the specified key in the context. |
void |
setEventDispatcher(EventBus dispatcher)
Sets the event dispatcher associated with the hsm to which the context belongs. |
void |
setTriggerEvent(Event trigger)
Sets the trigger event. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private Map dataStore_
private EventBus dispatcher_
private Event trigger_
Constructor Detail |
public HSMContext()
Method Detail |
public Object get(String key)
Context
get
in interface Context
key
- The key whose associated value is to be returned.
null
if the context
contains no mapping for this key.public void set(String key, Object value)
Context
set
in interface Context
key
- The key with which the specified value is to be associated.value
- The value to be associated with the specified key.public Object remove(String key)
public void setEventDispatcher(EventBus dispatcher)
Context
setEventDispatcher
in interface Context
public EventBus getEventDispatcher()
Context
getEventDispatcher
in interface Context
public void setTriggerEvent(Event trigger)
Context
setTriggerEvent
in interface Context
trigger
- The trigger event that was responsible for the execution
of the action.public Event getTriggerEvent()
Context
getTriggerEvent
in interface Context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |