|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.ls5.jlearn.algorithms.dhc.DHC
public class DHC
| Constructor Summary | |
|---|---|
DHC()
Empty constructor. |
|
DHC(Alphabet startalphabet,
Oracle oracle)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
addCounterExample(Word example,
Word output)
Take an counterexample, determine what prefix makes the difference, add that splitter to the alphabet, and reset the hypothesis automaton |
void |
addJokerSymbol(Symbol joker)
|
int |
addLetter(Symbol letter)
Insertion of new letter to the alphabet. |
void |
addSuffix(Word suffix)
Add given Word to the internal set of suffixes of this
Learner. |
void |
enableBigBatches(boolean b)
|
void |
enableComlexSplitterOutput(boolean b)
|
void |
enableDebugOutput(boolean b)
|
void |
enableHypothesisRecording(boolean enabled)
|
void |
enableMemoryLogging(boolean b)
|
void |
enableSignatureDecisionTree(boolean b)
|
void |
enableTraceOptimizedAutomaton(boolean b)
|
protected void |
finalize()
|
Automaton |
getResult()
Provides the current hypothesis as Automaton object |
int |
getSigma()
Return the size of the internal Alphabet this Learner
uses to construct a hypothesis. |
void |
learn()
Core of the learning algorithm. |
void |
setAlphabet(Alphabet startalphabet)
Specifies the Alphabet used for construction of the hypothesis |
void |
setEquivalenceLookahead(int level)
|
void |
setOracle(Oracle oracle)
Set the Oracle to be queried during the learning process |
void |
setSplitterCreator(SplitterCreator splitterCreator)
Setter for the SplitterCreator, which encapsulates logic for
dealing with counterexamples (logic that, e.g., determines a suffix of
the counterexample that witnesses unequality of states, thus "splitting"
a state in the hypothesis). |
String |
toDot()
return current state of data structure as dot text. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DHC()
public DHC(Alphabet startalphabet,
Oracle oracle)
| Method Detail |
|---|
public void setSplitterCreator(SplitterCreator splitterCreator)
LearnerSplitterCreator, which encapsulates logic for
dealing with counterexamples (logic that, e.g., determines a suffix of
the counterexample that witnesses unequality of states, thus "splitting"
a state in the hypothesis).
setSplitterCreator in interface LearnersplitterCreator - instance of SplitterCreator to be used for processing counterexamplespublic void setAlphabet(Alphabet startalphabet)
LearnerAlphabet used for construction of the hypothesis
setAlphabet in interface Learnerstartalphabet - Alphabet to be used for constructionpublic void setOracle(Oracle oracle)
LearnerOracle to be queried during the learning process
setOracle in interface Learneroracle - Oracle to be queried
public void learn()
throws LearningException
learn in interface LearnerLearningException - if any learning-related exception occurs an instance of this exception will be thrown
public boolean addCounterExample(Word example,
Word output)
throws ObservationConflictException
addCounterExample in interface Learnerexample - counterexample provided by the equivalence oracleoutput - output produced by the SUT when processing the counterexample
ObservationConflictException - exception that is thrown if the counterexample and its output diverges from already observed behaviorpublic int addLetter(Symbol letter)
addLetter in interface Learnerletter - Symbol to be additionally considered when construction a hypothesis
Alphabet this letter was added to
protected void finalize()
throws Throwable
finalize in class ObjectThrowablepublic int getSigma()
LearnerAlphabet this Learner
uses to construct a hypothesis.
getSigma in interface Learnerpublic Automaton getResult()
LearnerAutomaton object
getResult in interface Learnerpublic void enableHypothesisRecording(boolean enabled)
public void addJokerSymbol(Symbol joker)
public void enableDebugOutput(boolean b)
public void enableBigBatches(boolean b)
public void enableSignatureDecisionTree(boolean b)
public void enableTraceOptimizedAutomaton(boolean b)
public void enableMemoryLogging(boolean b)
public void enableComlexSplitterOutput(boolean b)
public void setEquivalenceLookahead(int level)
public void addSuffix(Word suffix)
LearnerWord to the internal set of suffixes of this
Learner.
addSuffix in interface Learnersuffix - Word to be additionally considered when constructing a hypothesispublic String toDot()
ObservableDataStructure
toDot in interface ObservableDataStructure
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||