Top Description Inners Methods
org.glassfish.pfl.basic.fsm

public Interface Action

Known Direct Implementers
org.glassfish.pfl.basic.fsm.Action.Base

An Action may be associated with a transition between to states. The transition action doIt method is called before the transition takes place.
Author
Ken Cavanaugh

Nested and Inner Type Summary

Modifier and TypeClass and Description
public abstract static class

Method Summary

Modifier and TypeMethod and Description
public void
doIt(FSM
is the state machine causing this action.
fsm
,
Input
is the input that caused the transition.
in
)

Called by the state engine to perform an action before a state transition takes place.

Method Detail

doItback to summary
public void doIt(FSM fsm, Input in)

Called by the state engine to perform an action before a state transition takes place. The FSM is passed so that the Action may examine the state of the FSM. Note that an action should complete in a timely manner. If the state machine is used for concurrency control with multiple threads, the action must not allow multiple threads to run simultaneously in the state machine, as the state could be corrupted. Any exception thrown by the Action for the transition will be propagated to doIt.

Parameters
fsm:FSM

is the state machine causing this action.

in:Input

is the input that caused the transition.

org.glassfish.pfl.basic.fsm back to summary

public abstract Class Action.Base

extends NameBase
implements Action
Class Inheritance
All Implemented Interfaces
org.glassfish.pfl.basic.fsm.Action

Constructor Summary

AccessConstructor and Description
public
Base(String name)

Method Summary

Modifier and TypeMethod and Description
public static Action
compose(final Action arg1, final Action arg2)

Inherited from org.glassfish.pfl.basic.fsm.NameBase:
getNametoString

Constructor Detail

Baseback to summary
public Base(String name)

Method Detail

composeback to summary
public static Action compose(final Action arg1, final Action arg2)