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

Field Summary
protected  Interpreter _interpreter
           
protected  Relation _relation
           
 
Fields inherited from class com.irs.jam.Condition
_activeValue, _rep, COND_EXP, COND_FACT, COND_GOAL, COND_RETRIEVE
 
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.
 
Method Summary
abstract  boolean check(BindingList bl)
          Remove from the given binding list the ones not satisfying the fact.
abstract  boolean confirm(Binding b)
          Confirm whether the binding is still valid against the current WM
 Interpreter getInterpreter()
           
 java.lang.String getName()
           
 Relation getRelation()
           
abstract  int getType()
          Return the particular type of the object
 
Methods inherited from class com.irs.jam.Condition
setNegative, setPositive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_relation

protected Relation _relation

_interpreter

protected Interpreter _interpreter
Constructor Detail

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.
Method Detail

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