org.squirrelframework.foundation.fsm
Class ActionWrapper<T extends StateMachine<T,S,E,C>,S,E,C>
java.lang.Object
org.squirrelframework.foundation.fsm.ActionWrapper<T,S,E,C>
- All Implemented Interfaces:
- SquirrelComponent, Action<T,S,E,C>
public class ActionWrapper<T extends StateMachine<T,S,E,C>,S,E,C>
- extends Object
- implements Action<T,S,E,C>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActionWrapper
public ActionWrapper(Action<T,S,E,C> delegator)
execute
public void execute(S from,
S to,
E event,
C context,
T stateMachine)
- Description copied from interface:
Action
- Execute the activity.
- Specified by:
execute in interface Action<T extends StateMachine<T,S,E,C>,S,E,C>
- Parameters:
from - transition source stateto - transition target stateevent - event that trigger the transitioncontext - context objectstateMachine - the state machine
name
public String name()
- Specified by:
name in interface Action<T extends StateMachine<T,S,E,C>,S,E,C>
weight
public int weight()
- Specified by:
weight in interface Action<T extends StateMachine<T,S,E,C>,S,E,C>
isAsync
public boolean isAsync()
- Specified by:
isAsync in interface Action<T extends StateMachine<T,S,E,C>,S,E,C>
timeout
public long timeout()
- Specified by:
timeout in interface Action<T extends StateMachine<T,S,E,C>,S,E,C>
Copyright © 2013-2014. All Rights Reserved.