|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object learner.ObservationTable
public class ObservationTable
An observation table consists of sets of trees S
and
R
which represents states and transitions, respectively, and a
set of contexts C
to tell the trees in S
apart.
The entry at position (c,t)
in the table, where c
is in C
and t
is in S
or
R
, is 1 if c[t]
is in the target language, and
0 otherwise.
Constructor Summary | |
---|---|
ObservationTable(Teacher teacher)
Creates a new observation table. |
Method Summary | |
---|---|
boolean |
complete()
Includes dag.getTransitions() with rows not matched by any state in the set of dag.getStates(). |
Tree |
equivClass(Tree tree)
Retrieves the representative tree for the equivalence class to which the input tree belongs. |
Tree |
extend(Tree context,
Tree tree,
boolean reference)
Derives a new state & context, or a new transition, from a counterexample. |
FiniteTreeAutomata |
getFTA()
|
void |
synthesize()
Synthesizes a finite tree automata from the observation table. |
java.lang.String |
toString()
|
void |
updateColumns(Tree context)
|
void |
updateRows(Tree t)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ObservationTable(Teacher teacher)
teacher
- the oracle to queryMethod Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public Tree equivClass(Tree tree)
teacher
- tree
-
public void synthesize()
public boolean complete()
public void updateRows(Tree t)
public void updateColumns(Tree context)
public Tree extend(Tree context, Tree tree, boolean reference)
context
- The tree surrounding the current node in the counterexampletree
- the subtree rooted at the current node
public FiniteTreeAutomata getFTA()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |