com.cometway.states
Class StateMachineModel

java.lang.Object
  extended by com.cometway.states.StateMachineModel
All Implemented Interfaces:
StateMachineModelInterface

public class StateMachineModel
extends java.lang.Object
implements StateMachineModelInterface

Implementation of the StateMachineModelInterface.


Constructor Summary
StateMachineModel(java.lang.String name)
          Constructor for this state machine model.
 
Method Summary
 void addStateModel(StateModelInterface stateModel)
          Adds the specified state model to this state machine model.
 java.lang.String getName()
          Returns the name of this state machine model.
 StateModelInterface getStateModel(java.lang.String stateName)
          Returns a reference to the specified StateModelInterface in this state machine model; null if the specified state is invalid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateMachineModel

public StateMachineModel(java.lang.String name)
Constructor for this state machine model.

Parameters:
name - name of this state machine model.
Method Detail

addStateModel

public void addStateModel(StateModelInterface stateModel)
Adds the specified state model to this state machine model.


getStateModel

public StateModelInterface getStateModel(java.lang.String stateName)
Returns a reference to the specified StateModelInterface in this state machine model; null if the specified state is invalid.

Specified by:
getStateModel in interface StateMachineModelInterface

getName

public java.lang.String getName()
Returns the name of this state machine model.

Specified by:
getName in interface StateMachineModelInterface