public class DefaultVariableConditionalSlot extends DefaultConditionalSlot implements IMutableVariableNameSlot
EPSILON
EQUALS, GREATER_THAN, GREATER_THAN_EQUALS, LESS_THAN, LESS_THAN_EQUALS, NOT_EQUALS, WITHIN
Constructor and Description |
---|
DefaultVariableConditionalSlot(ISlot slot) |
DefaultVariableConditionalSlot(java.lang.String name,
int condition,
java.lang.Object value) |
DefaultVariableConditionalSlot(java.lang.String name,
java.lang.Object value) |
Modifier and Type | Method and Description |
---|---|
DefaultVariableConditionalSlot |
clone() |
boolean |
isVariableName()
does this slot's name correspond to an unresolved variable
|
boolean |
matchesCondition(java.lang.Object test)
if the name is still variablized, return false
|
void |
setName(java.lang.String name)
set the name of the slot, fully resolving it.
|
createToString, equals, equalValues, getCondition, hashCode, setCondition
setValue
clearToString, compareTo, getName, getValue, isVariable, isVariableValue, setNameInternal, setValueInternal, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
equalValues, getName, getValue, isVariable, isVariableValue
setValue
public DefaultVariableConditionalSlot(ISlot slot)
public DefaultVariableConditionalSlot(java.lang.String name, java.lang.Object value)
public DefaultVariableConditionalSlot(java.lang.String name, int condition, java.lang.Object value)
public DefaultVariableConditionalSlot clone()
clone
in interface ISlot
clone
in class DefaultConditionalSlot
org.jactr.core.utils.Duplicateable#duplicate()
public void setName(java.lang.String name)
IMutableVariableNameSlot
IVariableNameSlot.isVariableName()
returns
false), the name is not changed.setName
in interface IMutableVariableNameSlot
public boolean isVariableName()
IVariableNameSlot
isVariableName
in interface IVariableNameSlot
public boolean matchesCondition(java.lang.Object test)
matchesCondition
in interface IConditionalSlot
matchesCondition
in class DefaultConditionalSlot
test
- DefaultConditionalSlot.matchesCondition(java.lang.Object)