|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.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()
AutomatonAutomaton the starting
state is automatically instantiated, too.
getStart in interface Automatonpublic Alphabet getAlphabet()
AutomatonAlphabet of this automaton
getAlphabet in interface Automatonpublic Alphabet getOutputAlphabet()
Automaton
getOutputAlphabet in interface Automatonpublic State addNewState()
AutomatonState and return it.
addNewState in interface Automatonpublic boolean isWellDefined()
Automaton
isWellDefined in interface Automatonpublic List<State> getAllStates()
Automaton
getAllStates in interface Automatonpublic List<State> getIncompleteStates()
Automaton
getIncompleteStates in interface Automatonpublic State getOtherStateWithSameSignature(State s)
Automaton
getOtherStateWithSameSignature in interface Automatonpublic Automaton getCopyWithRestrictedAlphabet(Alphabet alpha)
Automaton
getCopyWithRestrictedAlphabet in interface Automatonalpha - Alphabet to resrict the copy to
public Word getTraceToState(State destination)
Automaton
getTraceToState in interface Automatonpublic 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 Automatonpublic void reassignStateIds()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||