commandline.CodingUtils
Class State

java.lang.Object
  extended by commandline.CodingUtils.State
Direct Known Subclasses:
State_A, State_B, State_C

public abstract class State
extends java.lang.Object


Field Summary
protected  Configuration configuration
           
protected  GenericEdge genericEdge
           
 
Constructor Summary
State(GenericEdge genericEdge, Configuration configuration)
           
 
Method Summary
abstract  void accept(StateVisitor stateVisitor)
           
 GenericEdge getGenericEdge()
           
static State getInitialState(GenericEdge edge, Configuration configuration)
          returns the initial state of an edge depending on its characteristics
 int getMaxVanBeginWeg(GenericEdge edge)
           
 int getMinNaarBeginToe(GenericEdge edge)
           
abstract  State getNextState(GenericEdge child)
          returns the state of the child depending on this state
abstract  java.lang.String getStateString()
          Get the string of the state
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

genericEdge

protected GenericEdge genericEdge

configuration

protected Configuration configuration
Constructor Detail

State

public State(GenericEdge genericEdge,
             Configuration configuration)
Method Detail

getMaxVanBeginWeg

public int getMaxVanBeginWeg(GenericEdge edge)

getMinNaarBeginToe

public int getMinNaarBeginToe(GenericEdge edge)

getNextState

public abstract State getNextState(GenericEdge child)
returns the state of the child depending on this state

Parameters:
child -
Returns:

getStateString

public abstract java.lang.String getStateString()
Get the string of the state

Returns:

getInitialState

public static State getInitialState(GenericEdge edge,
                                    Configuration configuration)
returns the initial state of an edge depending on its characteristics

Parameters:
edge -
Returns:

accept

public abstract void accept(StateVisitor stateVisitor)

getGenericEdge

public GenericEdge getGenericEdge()