K
- the enum used to identify statesE
- the enum used to identify eventspublic abstract class ObjectState<K,E>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
addTransition(StateTransition<K,E> transition)
Adds a transition to the list of transitions of this state
|
ObjectState<K,E> |
tiggerEvent(E eventID,
java.lang.Object context)
A new event occurred and is now processed
|
public void addTransition(StateTransition<K,E> transition)
transition
- the new transition to addpublic ObjectState<K,E> tiggerEvent(E eventID, java.lang.Object context)
eventID
- the event that happenedcontext
- the object on which the event happened