jInfer

cz.cuni.mff.ksi.jinfer.base.automaton
Class State<T>

java.lang.Object
  extended by cz.cuni.mff.ksi.jinfer.base.automaton.State<T>

public class State<T>
extends Object

Class representing state in deterministic finite automaton. has fields- finalCount - number the times its final state, how many input strings ended in this state State is just a nearly empty box used as reference for .equals() when traversing automaton and so on. But object with some properties is more useful then representation by numbers for example. name - simple integer to name states correctly in log output and visualization parentAutomaton


Constructor Summary
State(int finalCount, int name)
          Only one constructor, setting all states parameters.
 
Method Summary
 int getFinalCount()
           
 int getName()
           
 void incFinalCount()
          increment finalCount by 1
 void incFinalCount(int i)
          increment finalCount
 void setFinalCount(int finalCount)
           
 void setName(int name)
           
 String toString()
           
 String toTestString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

State

public State(int finalCount,
             int name)
Only one constructor, setting all states parameters.

Parameters:
finalCount -
name -
parentAutomaton -
Method Detail

getFinalCount

public int getFinalCount()
Returns:
the finalCount

setFinalCount

public void setFinalCount(int finalCount)
Parameters:
finalCount - the finalCount to set

incFinalCount

public void incFinalCount()
increment finalCount by 1


incFinalCount

public void incFinalCount(int i)
increment finalCount

Parameters:
i -

getName

public int getName()
Returns:
the name

setName

public void setName(int name)
Parameters:
name - the name to set

toString

public String toString()
Overrides:
toString in class Object

toTestString

public String toTestString()

jInfer

Generated on Fri Dec 9 00:01:25 CET 2011