Neokernel API

com.neokernel.states Namespace

Namespace Hierarchy

Classes

Class Description
AutoTransition

This is a TransitionInterface that always returns the state specified in the constructor. All of the state transitions in Agent are implemented as AutTransition objects.

Here is an example of using AutoTransition with StateMachineModel and StateModel; it is a code snippet from the source for Agent:
TransitionInterface transition = new AutoTransition(CREATING_STATE, STOPPED_STATE);
StateModelInterface stateModel = new StateModel(CREATING_STATE, command, transition);
stateMachine.addStateModel(stateModel);
CommandException This exception is thrown by execute when there is a problem.
ReflectionCommand This implementation of CommandInterface uses the System.Reflection API to invoke a public method of an Object.
ReflectionTransition This implementation of TransitionInterface uses the System.Reflection API to execute a public method of a transition object. The method is called when the execute() method is invoked; the return value is the name of the new State if the transition is successful, or null (Nothing in Visual Basic) if the transition is unsuccessful.
StateMachineModel An implementation of the IStateMachineModelInterface.
StateModel An implementation of the StateModelInterface.
TransitionException This exception is thrown by execute when there is a problem.

Interfaces

Interface Description
CommandInterface This interface defines methods necessary to be executable by the StateModel.
HasStateMachineModel This interface can be implemented by any class that needs to provide public access to its IStateMachineModelInterface.
IStateMachineModelInterface This interface defines methods necessary to retrieve states from a model of a state machine.
StateModelInterface This interface defines methods necessary to retrieve information from a StateModel.
TransitionInterface This interface defines methods necessary to test for a state transition.