|
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.VCTemplate
Constructor Summary | |
VCTemplate(Object slot,
Object frame,
Object val,
boolean inverse)
|
|
VCTemplate(Object slot,
Object frame,
Object val,
boolean inverse,
Object val2,
Symbol sign)
|
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 value2,
Symbol sign,
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()
|
boolean |
unify(Object param1,
List param2)
Attempts to unify with another object, that is find a variable assignment that will make the two objects equal. |
Methods inherited from class jtp.frame.listen.ListenerTemplate |
createLiteral, instantiateTemplate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public VCTemplate(Object slot, Object frame, Object val, boolean inverse)
public VCTemplate(Object slot, Object frame, Object val, boolean inverse, Object val2, Symbol sign)
Method Detail |
protected AbstractVCListener createListener(Object value, Object value2, Symbol sign, VCListenerCreationReasoningStep rs)
ListenerTemplate
AbstractVCListener
that can instantiate the template given a concrete object as
input.
createListener
in class ListenerTemplate
public 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.Variable
public boolean unify(Object param1, List param2)
Unifyable
unify
in interface Unifyable
unify
in class ListenerTemplate
param1
- the object to unify with.param2
- the variable stack
public String toString()
toString
in class Object
protected Clause getClause()
ListenerTemplate
Clause
that, as close as possible, indicates what this template
represents in FOL.
getClause
in class ListenerTemplate
|
JTP API Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |