|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectlearner.AutomaticTeacher
public class AutomaticTeacher
Implements the interface Teacher, and uses an fta to represent the target language.
Teacher| Constructor Summary | |
|---|---|
AutomaticTeacher(FiniteTreeAutomata fta)
Creates and initializes a new teacher. |
|
| Method Summary | |
|---|---|
Tree |
equivalence(FiniteTreeAutomata fta)
If the provided FTA does not accept exactly the target language, the a counter example is provided, otherwise the function returns null. |
boolean |
membership(Tree t)
Answers wether or not the provided tree is a member of the target language. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AutomaticTeacher(FiniteTreeAutomata fta)
fta - The target language as an fta.| Method Detail |
|---|
public Tree equivalence(FiniteTreeAutomata fta)
Teacher
equivalence in interface Teacherfta - A FiniteTreeAutomata that is supposed to recognise the target
language.
public boolean membership(Tree t)
Teacher
membership in interface Teachert - The labelled tree whose membership is to be determined.
t t is a member of the
target language, and false if it is not (or, if it is null).
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||