|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Learner
Interface for learning algorithms
| Method Summary | |
|---|---|
boolean |
addCounterExample(Word example,
Word output)
Process a counterexample. |
int |
addLetter(Symbol letter)
Add given Symbol to the internal Alphabet of this
Learner. |
void |
addSuffix(Word suffix)
Add given Word to the internal set of suffixes of this
Learner. |
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()
Starts the learning algorithm, returns once a hypothesis has been constructed |
void |
setAlphabet(Alphabet alphabet)
Specifies the Alphabet used for construction of the hypothesis |
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). |
| Method Detail |
|---|
void setOracle(Oracle oracle)
Oracle to be queried during the learning process
oracle - Oracle to be queriedvoid setAlphabet(Alphabet alphabet)
Alphabet used for construction of the hypothesis
alphabet - Alphabet to be used for constructionvoid setSplitterCreator(SplitterCreator splitterCreator)
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).
splitterCreator - instance of SplitterCreator to be used for processing counterexamplesAutomaton getResult()
Automaton object
void learn()
throws LearningException
LearningException - if any learning-related exception occurs an instance of this exception will be thrown
boolean addCounterExample(Word example,
Word output)
throws ObservationConflictException
EquivalenceOracle found proof (a counterexample) for
diverging behavior between the hypothesis and the System Under Test (SUT).
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 behaviorint addLetter(Symbol letter)
Symbol to the internal Alphabet of this
Learner.
letter - Symbol to be additionally considered when construction a hypothesis
Alphabet this letter was added tovoid addSuffix(Word suffix)
Word to the internal set of suffixes of this
Learner.
suffix - Word to be additionally considered when constructing a hypothesisint getSigma()
Alphabet this Learner
uses to construct a hypothesis.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||