|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.ls5.jlearn.shared.AutomatonImpl
public class AutomatonImpl
Constructor Summary | |
---|---|
AutomatonImpl(Alphabet alphabet)
Constructor. |
|
AutomatonImpl(Alphabet alphabet,
boolean optimizedTraces)
Constructor. |
Method Summary | |
---|---|
State |
addNewState()
Creates a new State and return it. |
List<State> |
getAllStates()
Applies a breadth-first search algorithm to retrieve all states reachable from the starting state. |
Alphabet |
getAlphabet()
Return Alphabet of this automaton |
Automaton |
getCopyWithRestrictedAlphabet(Alphabet alpha)
Create a copy of the automaton with only input symbols present in the supplied alphabet being present. |
List<State> |
getIncompleteStates()
Returns all states of the automaton which not yet have a complete set of transitions. |
boolean |
getOptimizedTracesEnabled()
|
State |
getOtherStateWithSameSignature(State s)
Find state other than the supplied state producing the very same output for every input symbol of the alphabet. |
Alphabet |
getOutputAlphabet()
Return all symbols used as output in this automaton. |
State |
getStart()
Return the starting state. |
Word |
getTraceOutput(Word trace)
Return a word of output symbols produced by the automaton as reaction to the supplied word of input symbols. |
State |
getTraceState(Word trace,
int steps)
Return reached state after consuming the specified number of symbols of the input trace. |
Word |
getTraceToState(State destination)
Returns an access-sequence to the given state. |
Word |
getTraceToStateOptimized(StateImpl destination)
|
boolean |
isWellDefined()
Checks if all states of the automaton have a complete set of valid transitions, meaning that every state has a transition for every symbol of the alphabet. |
void |
reassignStateIds()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AutomatonImpl(Alphabet alphabet)
public AutomatonImpl(Alphabet alphabet, boolean optimizedTraces)
Method Detail |
---|
public boolean getOptimizedTracesEnabled()
public State getStart()
Automaton
Automaton
the starting
state is automatically instantiated, too.
getStart
in interface Automaton
public Alphabet getAlphabet()
Automaton
Alphabet
of this automaton
getAlphabet
in interface Automaton
public Alphabet getOutputAlphabet()
Automaton
getOutputAlphabet
in interface Automaton
public State addNewState()
Automaton
State
and return it.
addNewState
in interface Automaton
public boolean isWellDefined()
Automaton
isWellDefined
in interface Automaton
public List<State> getAllStates()
Automaton
getAllStates
in interface Automaton
public List<State> getIncompleteStates()
Automaton
getIncompleteStates
in interface Automaton
public State getOtherStateWithSameSignature(State s)
Automaton
getOtherStateWithSameSignature
in interface Automaton
public Automaton getCopyWithRestrictedAlphabet(Alphabet alpha)
Automaton
getCopyWithRestrictedAlphabet
in interface Automaton
alpha
- Alphabet to resrict the copy to
public Word getTraceToState(State destination)
Automaton
getTraceToState
in interface Automaton
public Word getTraceToStateOptimized(StateImpl destination)
public Word getTraceOutput(Word trace)
Automaton
getTraceOutput
in interface Automaton
public State getTraceState(Word trace, int steps)
Automaton
getTraceState
in interface Automaton
public void reassignStateIds()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |