Class Overview
TransitionCondition
which returns true iff the java class type of the
event is the same as the type this class is instaniated with.
Summary
Public Methods |
boolean
|
allow(Object event, Object entity, State state)
Test whether this state transition is allowed given the event object and
current state.
|
Public Constructors
public
EventTypeCondition
(Class<?> type)
Public Methods
public
boolean
allow
(Object event, Object entity, State state)
Test whether this state transition is allowed given the event object and
current state.
Parameters
event
| The event which is being applied on the state machine. |
entity
| Entity associated with this state machine. |
state
| Current state of the FSM. |
Returns
- true iff
event
is an instance of type