|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.mff.ksi.jinfer.base.automaton.Automaton<Regexp<T>> cz.cuni.mff.ksi.jinfer.twostep.processing.automatonmergingstate.regexping.RegexpAutomaton<T> cz.cuni.mff.ksi.jinfer.twostep.processing.automatonmergingstate.regexping.stateremoval.StateRemovalRegexpAutomaton<T>
public class StateRemovalRegexpAutomaton<T>
Extending automaton to support operations for method of state removal conversion
of automaton into regular expression.
By subsequently calling removeState
automaton gets smaller and smaller, and combines regular expressions
on transitions being removed. Resulting an automaton with two phantom states
and one transition with final regular expression.
Two phantom states are superInitialState
and superFinalState
,
they are created as new states when creating automaton from another automaton.
All other states have to be removed to obtain regular expression.
Field Summary |
---|
Fields inherited from class cz.cuni.mff.ksi.jinfer.base.automaton.Automaton |
---|
delta, initialState, mergedStates, nameMap, newStateName, reverseDelta, reverseMergedStates |
Constructor Summary | |
---|---|
StateRemovalRegexpAutomaton(RegexpAutomaton<T> anotherAutomaton)
Given RegexpAutomaton, creates state removal automaton with superFinal and superInitial state. |
|
StateRemovalRegexpAutomaton(StateRemovalRegexpAutomaton<T> anotherAutomaton)
Cloning constructor. |
Method Summary | |
---|---|
Step<Regexp<T>> |
collapseStateParallelSteps(State<Regexp<T>> state)
|
void |
finalStep()
|
List<Step<Regexp<T>>> |
getLoopSteps(State<Regexp<T>> state)
Get loops of state. |
State<Regexp<T>> |
getSuperFinalState()
Get superFinalState. |
State<Regexp<T>> |
getSuperInitialState()
Get superInitialState. |
void |
removeState(State<Regexp<T>> _state)
Removes from automaton state given by by-passing its {in | out}-transitions. |
Methods inherited from class cz.cuni.mff.ksi.jinfer.base.automaton.Automaton |
---|
buildPTAOnRegexp, buildPTAOnSymbol, createNewState, getDelta, getInitialState, getMergedStates, getNewStateName, getOutStepOnSymbol, getRealState, getReverseDelta, getReverseMergedStates, mergeStates, mergeStates, toString, toTestString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StateRemovalRegexpAutomaton(RegexpAutomaton<T> anotherAutomaton)
anotherAutomaton
- regexp automaton whose structure we will copypublic StateRemovalRegexpAutomaton(StateRemovalRegexpAutomaton<T> anotherAutomaton)
anotherAutomaton
- another StateRemovalRegexpAutomaton
we will be clone ofMethod Detail |
---|
public Step<Regexp<T>> collapseStateParallelSteps(State<Regexp<T>> state)
public void removeState(State<Regexp<T>> _state)
state
- to be removed from automatonpublic void finalStep()
public State<Regexp<T>> getSuperFinalState()
public State<Regexp<T>> getSuperInitialState()
public List<Step<Regexp<T>>> getLoopSteps(State<Regexp<T>> state)
state
- to inspect
|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |