|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.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)
Learner
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).
setSplitterCreator
in interface Learner
splitterCreator
- instance of SplitterCreator
to be used for processing counterexamplespublic void setAlphabet(Alphabet startalphabet)
Learner
Alphabet
used for construction of the hypothesis
setAlphabet
in interface Learner
startalphabet
- Alphabet
to be used for constructionpublic void setOracle(Oracle oracle)
Learner
Oracle
to be queried during the learning process
setOracle
in interface Learner
oracle
- Oracle
to be queriedpublic void learn() throws LearningException
learn
in interface Learner
LearningException
- if any learning-related exception occurs an instance of this exception will be thrownpublic boolean addCounterExample(Word example, Word output) throws ObservationConflictException
addCounterExample
in interface Learner
example
- 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 Learner
letter
- Symbol
to be additionally considered when construction a hypothesis
Alphabet
this letter was added toprotected void finalize() throws Throwable
finalize
in class Object
Throwable
public int getSigma()
Learner
Alphabet
this Learner
uses to construct a hypothesis.
getSigma
in interface Learner
public Automaton getResult()
Learner
Automaton
object
getResult
in interface Learner
public 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)
Learner
Word
to the internal set of suffixes of this
Learner
.
addSuffix
in interface Learner
suffix
- 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 |