org.squirrelframework.foundation.fsm.impl
Class MethodCallActionImpl<T extends StateMachine<T,S,E,C>,S,E,C>
java.lang.Object
org.squirrelframework.foundation.fsm.impl.MethodCallActionImpl<T,S,E,C>
- All Implemented Interfaces:
- SquirrelComponent, Action<T,S,E,C>
public class MethodCallActionImpl<T extends StateMachine<T,S,E,C>,S,E,C>
- extends Object
- implements Action<T,S,E,C>
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>
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
weight
public int weight()
- Specified by:
weight in interface Action<T extends StateMachine<T,S,E,C>,S,E,C>
toString
public final String toString()
- Overrides:
toString in class Object
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.