com.monad.homerun.model.state
Class StateModelStatus

java.lang.Object
  extended by com.monad.homerun.model.state.StateModelStatus
All Implemented Interfaces:
ModelStatus, java.io.Serializable

public class StateModelStatus
extends java.lang.Object
implements ModelStatus, java.io.Serializable

StateModelStatus extends ModelStatus for State Models

See Also:
Serialized Form

Constructor Summary
StateModelStatus(java.lang.String modelName, Value[] states, java.lang.String curState, java.lang.String lastTrans)
           
 
Method Summary
 java.lang.String getLastTransition()
           
 java.lang.String getModelName()
          Returns the name of the model whose status it is
 Value[] getModelStates()
           
 java.lang.String getModelType()
          Returns the type of the model.
 Value getModelValue()
          Returns the current value of the model.
 int getNumStates()
           
 Value getState(java.lang.String stateName)
           
 java.lang.String[] getStateNames()
           
 boolean isInState(java.lang.String stateName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateModelStatus

public StateModelStatus(java.lang.String modelName,
                        Value[] states,
                        java.lang.String curState,
                        java.lang.String lastTrans)
Method Detail

getModelName

public java.lang.String getModelName()
Description copied from interface: ModelStatus
Returns the name of the model whose status it is

Specified by:
getModelName in interface ModelStatus
Returns:
the model name

getModelType

public java.lang.String getModelType()
Description copied from interface: ModelStatus
Returns the type of the model.

Specified by:
getModelType in interface ModelStatus
Returns:
the model type

getModelValue

public Value getModelValue()
Description copied from interface: ModelStatus
Returns the current value of the model.

Specified by:
getModelValue in interface ModelStatus
Returns:
the current model value

getLastTransition

public java.lang.String getLastTransition()

getNumStates

public int getNumStates()

getModelStates

public Value[] getModelStates()

getStateNames

public java.lang.String[] getStateNames()

isInState

public boolean isInState(java.lang.String stateName)

getState

public Value getState(java.lang.String stateName)


Copyright © 2006-2009 Richard Rodgers. All Rights Reserved.