com.irs.jam
Class RelationCondition
java.lang.Object
|
+--com.irs.jam.Condition
|
+--com.irs.jam.RelationCondition
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- FactCondition, RetrieveCondition
- public abstract class RelationCondition
- extends Condition
- implements java.io.Serializable
A boolean-evaluable relation
- See Also:
- Serialized Form
Constructor Summary |
RelationCondition(Relation r,
Interpreter interpreter)
Constructor w/ World Model relation and interpreter (to
simplify access to the agent's World Model) as arguments. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_relation
protected Relation _relation
_interpreter
protected Interpreter _interpreter
RelationCondition
public RelationCondition(Relation r,
Interpreter interpreter)
- Constructor w/ World Model relation and interpreter (to
simplify access to the agent's World Model) as arguments.
getName
public java.lang.String getName()
- Overrides:
getName
in class Condition
getRelation
public Relation getRelation()
getInterpreter
public Interpreter getInterpreter()
getType
public abstract int getType()
- Return the particular type of the object
- Overrides:
getType
in class Condition
check
public abstract boolean check(BindingList bl)
- Remove from the given binding list the ones not satisfying the fact.
- Overrides:
check
in class Condition
confirm
public abstract boolean confirm(Binding b)
- Confirm whether the binding is still valid against the current WM
- Overrides:
confirm
in class Condition