org.squirrelframework.foundation.fsm
Class ActionWrapper<T extends StateMachine<T,S,E,C>,S,E,C>

java.lang.Object
  extended by 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>


Field Summary
 
Fields inherited from interface org.squirrelframework.foundation.fsm.Action
AFTER_WEIGHT, BEFORE_WEIGHT, DUMMY_ACTION, EXTENSION_WEIGHT, IGNORE_WEIGHT, MAX_WEIGHT, MIN_WEIGHT, NORMAL_WEIGHT
 
Constructor Summary
ActionWrapper(Action<T,S,E,C> delegator)
           
 
Method Summary
 void execute(S from, S to, E event, C context, T stateMachine)
          Execute the activity.
 boolean isAsync()
           
 String name()
           
 long timeout()
           
 int weight()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionWrapper

public ActionWrapper(Action<T,S,E,C> delegator)
Method Detail

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 state
to - transition target state
event - event that trigger the transition
context - context object
stateMachine - 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.