org.problets.lib.io.output.state
Class StateModel

java.lang.Object
  extended by org.problets.lib.io.output.state.StateModel

public class StateModel
extends java.lang.Object

Holds all the information about a state

Since:
12 / 16 / 2008
Author:
Amruth Kumar

Field Summary
static int END_STATE_ID
          Constant used to indicate end of the state diagram
static int UNINITIALIZED_ID
          Constant used to indicate incorrect state id
 
Constructor Summary
StateModel(java.util.Vector contentVector)
           
 
Method Summary
 java.lang.String getImageFileName()
          Returns the name of the image file for this state
 java.lang.String getMessage()
          Returns the message for this state
 int getStateId()
          Returns the id of this state
 java.lang.String getStateType()
          Returns the type of this state
 java.util.Vector getTransitions()
          Returns a clone of the transition vector for this state
 boolean hasImage()
          Returns whether an image file has been specified for this state
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNINITIALIZED_ID

public static final int UNINITIALIZED_ID
Constant used to indicate incorrect state id

See Also:
Constant Field Values

END_STATE_ID

public static final int END_STATE_ID
Constant used to indicate end of the state diagram

See Also:
Constant Field Values
Constructor Detail

StateModel

public StateModel(java.util.Vector contentVector)
Method Detail

getStateType

public java.lang.String getStateType()
Returns the type of this state


getStateId

public int getStateId()
Returns the id of this state


getMessage

public java.lang.String getMessage()
Returns the message for this state


hasImage

public boolean hasImage()
Returns whether an image file has been specified for this state


getImageFileName

public java.lang.String getImageFileName()
Returns the name of the image file for this state


getTransitions

public java.util.Vector getTransitions()
Returns a clone of the transition vector for this state


main

public static void main(java.lang.String[] args)