|
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.twostep.processing.automatonmergingstate.simplifying.greedy.Greedy<T>
public class Greedy<T>
Greedy simplifier, given MergeContitionTester
, will merge all states
that tester returns as equivalent.
It will ask the tester for capability "parameters".
When the tester is one from known, it will set parameters to it according
to user preference. If it is not known, it is created with factory,
so tester have to have some reasonable default parameter setting or own
properties panel for user to enter defaults.
Constructor Summary | |
---|---|
Greedy(MergeConditionTesterFactory mergeConditionTesterFactory)
Create with factory of MergeConditionTester selected. |
Method Summary | |
---|---|
Automaton<T> |
simplify(Automaton<T> inputAutomaton,
SymbolToString<T> symbolToString)
Simplify by merging states greedily. |
Automaton<T> |
simplify(Automaton<T> inputAutomaton,
SymbolToString<T> symbolToString,
List<List<T>> inputStrings)
Simplify an automaton. |
Automaton<T> |
simplify(Automaton<T> inputAutomaton,
SymbolToString<T> symbolToString,
String elementName)
Same as above. |
Automaton<T> |
simplify(Automaton<T> inputAutomaton,
SymbolToString<T> symbolToString,
String elementName,
List<List<T>> inputStrings)
Simplify an automaton. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Greedy(MergeConditionTesterFactory mergeConditionTesterFactory)
MergeConditionTester
selected.
Without parameters capability!
mergeConditionTesterFactory
- factory for {link MergeConditionTester} to use in simplifying.Method Detail |
---|
public Automaton<T> simplify(Automaton<T> inputAutomaton, SymbolToString<T> symbolToString) throws InterruptedException
simplify
in interface AutomatonSimplifier<T>
inputAutomaton
- automaton to modifysymbolToString
- edge label to string converter
InterruptedException
public Automaton<T> simplify(Automaton<T> inputAutomaton, SymbolToString<T> symbolToString, String elementName) throws InterruptedException
simplify
in interface AutomatonSimplifier<T>
inputAutomaton
- automaton to modifysymbolToString
- edge label to string converterelementName
- name of element (cluster) we process right now, to be presented to user
InterruptedException
public Automaton<T> simplify(Automaton<T> inputAutomaton, SymbolToString<T> symbolToString, List<List<T>> inputStrings) throws InterruptedException
AutomatonSimplifier
simplify
in interface AutomatonSimplifier<T>
inputAutomaton
- automaton to processsymbolToString
- converter of symbols (of type T) to string - for rendering automaton to user
InterruptedException
public Automaton<T> simplify(Automaton<T> inputAutomaton, SymbolToString<T> symbolToString, String elementName, List<List<T>> inputStrings) throws InterruptedException
AutomatonSimplifier
simplify
in interface AutomatonSimplifier<T>
inputAutomaton
- automaton to processsymbolToString
- converter of symbols (of type T) to string - for rendering automaton to user
InterruptedException
|
jInfer | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |