|
JTP API Documentation | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--jtp.frame.listen.ListenerTemplate
|
+--jtp.frame.listen.TripleTemplate
| Constructor Summary | |
TripleTemplate(Object slot,
Object frame,
Object value)
|
|
| Method Summary | |
boolean |
contains(Variable v)
Checks if this Unifyable contains a given Variable (in that case, they cannot be unified). |
protected AbstractVCListener |
createListener(Object value,
Object comparisonVal,
Symbol comparisonSign,
VCListenerCreationReasoningStep rs)
The template instance returns a AbstractVCListener
that can instantiate the template given a concrete object as
input. |
Object |
deReferenceVariables()
Replaces all the variables in this Unifyable by their values. |
protected Clause |
getClause()
The template instance returns a Clause
that, as close as possible, indicates what this template
represents in FOL. |
Collection |
getVariables(Collection tgt)
Retrieves the variables in this Unifyable and places them into a provided target collection. |
String |
toString()
|
| Methods inherited from class jtp.frame.listen.ListenerTemplate |
createLiteral, instantiateTemplate, unify |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TripleTemplate(Object slot,
Object frame,
Object value)
| Method Detail |
protected AbstractVCListener createListener(Object value,
Object comparisonVal,
Symbol comparisonSign,
VCListenerCreationReasoningStep rs)
ListenerTemplateAbstractVCListener
that can instantiate the template given a concrete object as
input.
createListener in class ListenerTemplatepublic boolean contains(Variable v)
Unifyable
v - the variable to look for
public Collection getVariables(Collection tgt)
Unifyable
tgt - the collection to which the variables are added. If null, and this Unifyable
contains variables, a new collection is created.
public Object deReferenceVariables()
Unifyable
this is returned if no variables needed to be dereferenced.Variableprotected Clause getClause()
ListenerTemplateClause
that, as close as possible, indicates what this template
represents in FOL.
getClause in class ListenerTemplatepublic String toString()
toString in class Object
|
JTP API Documentation | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||