public class DefaultConditionalSlot extends DefaultMutableSlot implements IConditionalSlot
Modifier and Type | Field and Description |
---|---|
static double |
EPSILON |
EQUALS, GREATER_THAN, GREATER_THAN_EQUALS, LESS_THAN, LESS_THAN_EQUALS, NOT_EQUALS, WITHIN
Constructor and Description |
---|
DefaultConditionalSlot(ISlot slot) |
DefaultConditionalSlot(java.lang.String name,
int condition,
java.lang.Object value) |
DefaultConditionalSlot(java.lang.String name,
java.lang.Object value) |
Modifier and Type | Method and Description |
---|---|
DefaultConditionalSlot |
clone() |
protected java.lang.String |
createToString() |
boolean |
equals(java.lang.Object obj) |
boolean |
equalValues(java.lang.Object value) |
int |
getCondition() |
int |
hashCode()
value is intentionally excluded since we dont want the hash to change..
|
boolean |
matchesCondition(java.lang.Object test)
test the value to see if it satisfies the condition specified by this
conditional slot
|
void |
setCondition(int condition) |
setValue
clearToString, compareTo, getName, getValue, isVariable, isVariableValue, setNameInternal, setValueInternal, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
setValue
getName, getValue, isVariable, isVariableValue
public static final double EPSILON
public DefaultConditionalSlot(java.lang.String name, java.lang.Object value)
name
- value
- public DefaultConditionalSlot(java.lang.String name, int condition, java.lang.Object value)
public DefaultConditionalSlot(ISlot slot)
public DefaultConditionalSlot clone()
clone
in interface ISlot
clone
in class DefaultMutableSlot
org.jactr.core.utils.Duplicateable#duplicate()
public int getCondition()
getCondition
in interface IConditionalSlot
IConditionalSlot.getCondition()
public void setCondition(int condition)
setCondition
in interface IConditionalSlot
IConditionalSlot.setCondition(int)
public boolean matchesCondition(java.lang.Object test)
IConditionalSlot
matchesCondition
in interface IConditionalSlot
public boolean equalValues(java.lang.Object value)
equalValues
in interface ISlot
equalValues
in class BasicSlot
ISlot.equalValues(java.lang.Object)
protected java.lang.String createToString()
createToString
in class BasicSlot
public int hashCode()
DefaultMutableSlot
hashCode
in class DefaultMutableSlot
public boolean equals(java.lang.Object obj)
equals
in class DefaultMutableSlot