net.sf.parser4j.kernelgenerator.entity.state.syntax
Class StateMap

java.lang.Object
  extended by net.sf.parser4j.kernelgenerator.entity.state.syntax.StateMap

public class StateMap
extends java.lang.Object

Author:
luc peuvrier

Constructor Summary
StateMap()
           
 
Method Summary
 void addState(State state)
          add state
if state exist return false, else add new state and set its state identifier number
 State existingState(State state)
           
 int numberOfState()
           
 State stateByIdentifier(int stateIdentifier)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateMap

public StateMap()
Method Detail

existingState

public State existingState(State state)
Parameters:
state -
Returns:
existing state for state

addState

public void addState(State state)
add state
if state exist return false, else add new state and set its state identifier number

Parameters:
state - state to add, can already exist

stateByIdentifier

public State stateByIdentifier(int stateIdentifier)
Parameters:
stateIdentifier -
Returns:
existing state for state identifier

numberOfState

public int numberOfState()


Copyright © 2008-2009 Luc Peuvrier. All Rights Reserved.