|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.mff.ksi.jinfer.base.automaton.Step<T>
public class Step<T>
Class representing step sin finite automaton.
It's just a container for .equals() runs in automaton.
But also has useful information, source, destination - this is the only place
where such information in automaton is held. Although automaton has
map
Constructor Summary | |
---|---|
Step(T acceptSymbol,
State<T> source,
State<T> destination,
int useCount,
int minUseCount)
All settings at one constructor. |
Method Summary | |
---|---|
void |
addAllInputStrings(Collection<List<T>> inputStrings)
|
void |
addInputString(List<T> inputString)
|
T |
getAcceptSymbol()
|
State<T> |
getDestination()
|
List<List<T>> |
getInputStrings()
|
int |
getMinUseCount()
|
State<T> |
getSource()
|
int |
getUseCount()
|
void |
incMinUseCount()
TODO anti comment |
void |
incMinUseCount(int anotherMinUseCount)
TODO anti comment |
void |
incUseCount()
Increment useCount by one, useful in PTA build procedure |
void |
incUseCount(Integer i)
Increment by arbitrary number. |
void |
removeInputString(List<T> inputString)
|
void |
setAcceptSymbol(T acceptSymbol)
|
void |
setDestination(State<T> destination)
|
void |
setMinUseCount(int minUseCount)
|
void |
setSource(State<T> source)
|
void |
setUseCount(int useCount)
|
String |
toString()
|
String |
toTestString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Step(T acceptSymbol, State<T> source, State<T> destination, int useCount, int minUseCount)
acceptSymbol
- source
- destination
- useCount
- minUseCount
- Method Detail |
---|
public T getAcceptSymbol()
public void setAcceptSymbol(T acceptSymbol)
acceptSymbol
- the acceptSymbol to setpublic int getUseCount()
public void setUseCount(int useCount)
useCount
- the useCount to setpublic int getMinUseCount()
public void setMinUseCount(int minUseCount)
minUseCount
- public void incUseCount()
public void incUseCount(Integer i)
i
- public void incMinUseCount(int anotherMinUseCount)
anotherMinUseCount
- public void incMinUseCount()
public State<T> getSource()
public void setSource(State<T> source)
source
- the source to setpublic State<T> getDestination()
public void setDestination(State<T> destination)
destination
- the destination to setpublic void removeInputString(List<T> inputString)
public void addInputString(List<T> inputString)
public void addAllInputStrings(Collection<List<T>> inputStrings)
public List<List<T>> getInputStrings()
public String toString()
toString
in class Object
public String toTestString()
|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |