org.squirrelframework.foundation.fsm
Interface Action<T extends StateMachine<T,S,E,C>,S,E,C>
- Type Parameters:
T - type of State MachineS - type of StateE - type of EventC - type of Context
- All Superinterfaces:
- SquirrelComponent
- All Known Implementing Classes:
- ActionWrapper, AnonymousAction, MethodCallActionImpl, MethodCallActionProxyImpl, UntypedAnonymousAction
public interface Action<T extends StateMachine<T,S,E,C>,S,E,C>
- extends SquirrelComponent
An activity that is executed during transition happening.
- Author:
- Henry.He
MAX_WEIGHT
static final int MAX_WEIGHT
- See Also:
- Constant Field Values
BEFORE_WEIGHT
static final int BEFORE_WEIGHT
- See Also:
- Constant Field Values
NORMAL_WEIGHT
static final int NORMAL_WEIGHT
- See Also:
- Constant Field Values
EXTENSION_WEIGHT
static final int EXTENSION_WEIGHT
- See Also:
- Constant Field Values
AFTER_WEIGHT
static final int AFTER_WEIGHT
- See Also:
- Constant Field Values
MIN_WEIGHT
static final int MIN_WEIGHT
- See Also:
- Constant Field Values
IGNORE_WEIGHT
static final int IGNORE_WEIGHT
- See Also:
- Constant Field Values
DUMMY_ACTION
static final Action DUMMY_ACTION
execute
void execute(S from,
S to,
E event,
C context,
T stateMachine)
- Execute the activity.
- Parameters:
from - transition source stateto - transition target stateevent - event that trigger the transitioncontext - context objectstateMachine - the state machine
name
String name()
weight
int weight()
isAsync
boolean isAsync()
timeout
long timeout()
Copyright © 2013-2014. All Rights Reserved.