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

java.lang.Object
  extended by org.squirrelframework.foundation.fsm.impl.DeferBoundActionBuilderImpl<T,S,E,C>
All Implemented Interfaces:
SquirrelComponent, DeferBoundActionBuilder<T,S,E,C>, DeferBoundActionFrom<T,S,E,C>, DeferBoundActionTo<T,S,E,C>, On<T,S,E,C>, When<T,S,E,C>

public class DeferBoundActionBuilderImpl<T extends StateMachine<T,S,E,C>,S,E,C>
extends Object
implements DeferBoundActionBuilder<T,S,E,C>, DeferBoundActionFrom<T,S,E,C>, DeferBoundActionTo<T,S,E,C>, On<T,S,E,C>, SquirrelComponent


Method Summary
 void callMethod(String methodName)
          Define action method to be called during transition
 void evalMvel(String expression)
          Define mvel action to be performed during transition
 DeferBoundActionFrom<T,S,E,C> from(S from)
           
 DeferBoundActionFrom<T,S,E,C> fromAny()
           
 On<T,S,E,C> on(E event)
          Build transition event
 On<T,S,E,C> onAny()
           
 void perform(Action<T,S,E,C> action)
          Define action to be performed during transition
 void perform(List<Action<T,S,E,C>> actions)
          Define actions to be performed during transition
 DeferBoundActionTo<T,S,E,C> to(S to)
          Build transition target state and return to clause builder
 DeferBoundActionTo<T,S,E,C> toAny()
           
 When<T,S,E,C> when(Condition<C> condition)
          Add condition for the transition
 When<T,S,E,C> whenMvel(String expression)
          Add condition for the transition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

perform

public void perform(Action<T,S,E,C> action)
Description copied from interface: When
Define action to be performed during transition

Specified by:
perform in interface When<T extends StateMachine<T,S,E,C>,S,E,C>
Parameters:
action - performed action

perform

public void perform(List<Action<T,S,E,C>> actions)
Description copied from interface: When
Define actions to be performed during transition

Specified by:
perform in interface When<T extends StateMachine<T,S,E,C>,S,E,C>
Parameters:
actions - performed actions

evalMvel

public void evalMvel(String expression)
Description copied from interface: When
Define mvel action to be performed during transition

Specified by:
evalMvel in interface When<T extends StateMachine<T,S,E,C>,S,E,C>
Parameters:
expression - mvel expression

callMethod

public void callMethod(String methodName)
Description copied from interface: When
Define action method to be called during transition

Specified by:
callMethod in interface When<T extends StateMachine<T,S,E,C>,S,E,C>
Parameters:
methodName - method name

on

public On<T,S,E,C> on(E event)
Description copied from interface: DeferBoundActionTo
Build transition event

Specified by:
on in interface DeferBoundActionTo<T extends StateMachine<T,S,E,C>,S,E,C>
Parameters:
event - transition event
Returns:
On clause builder

onAny

public On<T,S,E,C> onAny()
Specified by:
onAny in interface DeferBoundActionTo<T extends StateMachine<T,S,E,C>,S,E,C>

to

public DeferBoundActionTo<T,S,E,C> to(S to)
Description copied from interface: DeferBoundActionFrom
Build transition target state and return to clause builder

Specified by:
to in interface DeferBoundActionFrom<T extends StateMachine<T,S,E,C>,S,E,C>
Parameters:
to - id of state
Returns:
To clause builder

toAny

public DeferBoundActionTo<T,S,E,C> toAny()
Specified by:
toAny in interface DeferBoundActionFrom<T extends StateMachine<T,S,E,C>,S,E,C>

fromAny

public DeferBoundActionFrom<T,S,E,C> fromAny()
Specified by:
fromAny in interface DeferBoundActionBuilder<T extends StateMachine<T,S,E,C>,S,E,C>

from

public DeferBoundActionFrom<T,S,E,C> from(S from)
Specified by:
from in interface DeferBoundActionBuilder<T extends StateMachine<T,S,E,C>,S,E,C>

when

public When<T,S,E,C> when(Condition<C> condition)
Description copied from interface: On
Add condition for the transition

Specified by:
when in interface On<T extends StateMachine<T,S,E,C>,S,E,C>
Parameters:
condition - transition condition
Returns:
When clause builder

whenMvel

public When<T,S,E,C> whenMvel(String expression)
Description copied from interface: On
Add condition for the transition

Specified by:
whenMvel in interface On<T extends StateMachine<T,S,E,C>,S,E,C>
Parameters:
expression - mvel expression
Returns:
When clause builder


Copyright © 2013-2014. All Rights Reserved.