, it has no direct information about where the steps have
the other ends.
Step also holds acceptSymbol, which is whatever object on which the automaton
is build on.
useCount is just integer representing times the step was used when automaton
was builded as PTA.
Constructor Summary |
Step(T acceptSymbol,
State<T> source,
State<T> destination,
int useCount,
int minUseCount)
All settings at one constructor. |
Step
public Step(T acceptSymbol,
State<T> source,
State<T> destination,
int useCount,
int minUseCount)
- All settings at one constructor. In time of creating step, states from and to
which it should point, have to be already instantiated.
- Parameters:
acceptSymbol
- source
- destination
- useCount
- minUseCount
-
getAcceptSymbol
public T getAcceptSymbol()
- Returns:
- the acceptSymbol
setAcceptSymbol
public void setAcceptSymbol(T acceptSymbol)
- Parameters:
acceptSymbol
- the acceptSymbol to set
getUseCount
public int getUseCount()
- Returns:
- the useCount
setUseCount
public void setUseCount(int useCount)
- Parameters:
useCount
- the useCount to set
getMinUseCount
public int getMinUseCount()
- Returns:
setMinUseCount
public void setMinUseCount(int minUseCount)
- Parameters:
minUseCount
-
incUseCount
public void incUseCount()
- Increment useCount by one, useful in PTA build procedure
incUseCount
public void incUseCount(Integer i)
- Increment by arbitrary number. Useful when collapsing steps such that
A -2-> B
A -5-> B
to one step
A -7-> B
- Parameters:
i
-
incMinUseCount
public void incMinUseCount(int anotherMinUseCount)
- TODO anti comment
- Parameters:
anotherMinUseCount
-
incMinUseCount
public void incMinUseCount()
- TODO anti comment
getSource
public State<T> getSource()
- Returns:
- the source
setSource
public void setSource(State<T> source)
- Parameters:
source
- the source to set
getDestination
public State<T> getDestination()
- Returns:
- the destination
setDestination
public void setDestination(State<T> destination)
- Parameters:
destination
- the destination to set
removeInputString
public void removeInputString(List<T> inputString)
addInputString
public void addInputString(List<T> inputString)
addAllInputStrings
public void addAllInputStrings(Collection<List<T>> inputStrings)
getInputStrings
public List<List<T>> getInputStrings()
toString
public String toString()
- Overrides:
toString
in class Object
toTestString
public String toTestString()
Generated on Fri Dec 9 00:01:25 CET 2011