Class OptimalTTTDFA<I>
- java.lang.Object
-
- de.learnlib.algorithm.oml.ttt.AbstractOptimalTTT<DFA<?,I>,I,Boolean>
-
- de.learnlib.algorithm.oml.ttt.dfa.OptimalTTTDFA<I>
-
- All Implemented Interfaces:
LearningAlgorithm<DFA<?,I>,I,Boolean>
,LearningAlgorithm.DFALearner<I>
,SupportsGrowingAlphabet<I>
,InputAlphabetHolder<I>
- Direct Known Subclasses:
OptimalTTTAdapterDFA
public class OptimalTTTDFA<I> extends AbstractOptimalTTT<DFA<?,I>,I,Boolean> implements LearningAlgorithm.DFALearner<I>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.learnlib.algorithm.LearningAlgorithm
LearningAlgorithm.DFALearner<I>, LearningAlgorithm.MealyLearner<I,O>, LearningAlgorithm.MooreLearner<I,O>, LearningAlgorithm.NFALearner<I>
-
-
Field Summary
-
Fields inherited from class de.learnlib.algorithm.oml.ttt.AbstractOptimalTTT
ptree, strie
-
-
Constructor Summary
Constructors Constructor Description OptimalTTTDFA(Alphabet<I> alphabet, MembershipOracle<I,Boolean> mqo)
OptimalTTTDFA(Alphabet<I> alphabet, MembershipOracle<I,Boolean> mqs, MembershipOracle<I,Boolean> ceqs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AbstractDecisionTree<I,Boolean>
dtree()
DFA<?,I>
getHypothesisModel()
Returns the current hypothesis model.protected DTLeaf<I,Boolean>
getState(Word<I> prefix)
protected Boolean
hypOutput(Word<I> word)
protected Boolean
hypOutput(Word<I> word, int length)
protected boolean
isCanonical()
protected int
maxSearchIndex(int ceLength)
protected Boolean
suffix(Boolean output, int length)
-
Methods inherited from class de.learnlib.algorithm.oml.ttt.AbstractOptimalTTT
addAlphabetSymbol, getInputAlphabet, refineHypothesis, startLearning
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.learnlib.algorithm.LearningAlgorithm
refineHypothesis, startLearning
-
-
-
-
Constructor Detail
-
OptimalTTTDFA
public OptimalTTTDFA(Alphabet<I> alphabet, MembershipOracle<I,Boolean> mqo)
-
OptimalTTTDFA
public OptimalTTTDFA(Alphabet<I> alphabet, MembershipOracle<I,Boolean> mqs, MembershipOracle<I,Boolean> ceqs)
-
-
Method Detail
-
maxSearchIndex
protected int maxSearchIndex(int ceLength)
- Specified by:
maxSearchIndex
in classAbstractOptimalTTT<DFA<?,I>,I,Boolean>
-
getHypothesisModel
public DFA<?,I> getHypothesisModel()
Description copied from interface:LearningAlgorithm
Returns the current hypothesis model.N.B.: By the contract of this interface, the model returned by this method may not be modified (i.e., M generally should refer to an immutable interface), and its validity is retained only until the next invocation of
LearningAlgorithm.refineHypothesis(DefaultQuery)
. If older hypotheses have to be maintained, a copy of the returned model must be made.Please note that it should be illegal to invoke this method before an initial invocation of
LearningAlgorithm.startLearning()
.- Specified by:
getHypothesisModel
in interfaceLearningAlgorithm<DFA<?,I>,I,Boolean>
- Returns:
- the current hypothesis model.
-
dtree
protected AbstractDecisionTree<I,Boolean> dtree()
-
isCanonical
protected boolean isCanonical()
- Specified by:
isCanonical
in classAbstractOptimalTTT<DFA<?,I>,I,Boolean>
-
-