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

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


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
 
Method Summary
 boolean equals(Object obj)
           
 void execute(S from, S to, E event, C context, T stateMachine)
          Execute the activity.
 int hashCode()
           
 boolean isAsync()
           
 String name()
           
 long timeout()
           
 String toString()
           
 int weight()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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>

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.