org.apache.commons.graph.domain.statemachine
Class State

java.lang.Object
  extended byorg.apache.commons.graph.domain.statemachine.State
All Implemented Interfaces:
Named, Vertex

public class State
extends java.lang.Object
implements Vertex, Named

Description of the Class


Field Summary
private  java.lang.String name
           
private  StateMachine subMachine
           
 
Constructor Summary
State(java.lang.String name)
          Constructor for the State object
 
Method Summary
 java.lang.String getName()
          Gets the name attribute of the State object
 StateMachine getSubmachine()
          Gets the submachine attribute of the State object
 void setSubmachine(StateMachine subMachine)
          Sets the submachine attribute of the State object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private java.lang.String name

subMachine

private StateMachine subMachine
Constructor Detail

State

public State(java.lang.String name)
Constructor for the State object

Parameters:
name -
Method Detail

getName

public java.lang.String getName()
Gets the name attribute of the State object

Specified by:
getName in interface Named

setSubmachine

public void setSubmachine(StateMachine subMachine)
Sets the submachine attribute of the State object


getSubmachine

public StateMachine getSubmachine()
Gets the submachine attribute of the State object