|
jInfer | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcz.cuni.mff.ksi.jinfer.twostep.processing.automatonmergingstate.regexping.stateremoval.ordered.StateRemovalOrdered<T>
public class StateRemovalOrdered<T>
Worker class of state removal algorithm. Removing states and combining regexps on transitions properly leads to automaton with only 2 states and one transition. Final regexp is on that transition.
Uses RegexpAutomatonStateRemoval automaton implementation of automaton, to
which it supplies states to remove in "correct" order. The order matters -
regexp can be shorter or longer (and complicated) according to order of states selected.
Order is determined by implementation of submodule interface
Orderer.
| Constructor Summary | |
|---|---|
StateRemovalOrdered(OrdererFactory ordererFactory)
Create given factory of Orderer submodule. |
|
| Method Summary | |
|---|---|
Regexp<T> |
simplify(RegexpAutomaton<T> inputAutomaton,
SymbolToString<Regexp<T>> symbolToString)
Convert input RegexpAutomaton to Regexp which represents same
language. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StateRemovalOrdered(OrdererFactory ordererFactory)
Orderer submodule.
ordererFactory - factory of Orderer submodule.| Method Detail |
|---|
public Regexp<T> simplify(RegexpAutomaton<T> inputAutomaton,
SymbolToString<Regexp<T>> symbolToString)
throws InterruptedException
RegexpAutomatonSimplifierRegexpAutomaton to Regexp which represents same
language.
simplify in interface RegexpAutomatonSimplifier<T>inputAutomaton - automaton to convert on regexp.symbolToString - converter of type T to string representation (for presenting automaton to user)
InterruptedException
|
jInfer | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||