org.jactr.core.slot
Class DefaultVariableConditionalSlot
java.lang.Object
org.jactr.core.slot.BasicSlot
org.jactr.core.slot.DefaultMutableSlot
org.jactr.core.slot.DefaultConditionalSlot
org.jactr.core.slot.DefaultVariableConditionalSlot
- All Implemented Interfaces:
- java.lang.Cloneable, java.lang.Comparable<ISlot>, IConditionalSlot, IMutableSlot, IMutableVariableNameSlot, ISlot, IVariableNameSlot
public class DefaultVariableConditionalSlot
- extends DefaultConditionalSlot
- implements IMutableVariableNameSlot
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
DefaultVariableConditionalSlot
public DefaultVariableConditionalSlot(ISlot slot)
DefaultVariableConditionalSlot
public DefaultVariableConditionalSlot(java.lang.String name,
java.lang.Object value)
DefaultVariableConditionalSlot
public DefaultVariableConditionalSlot(java.lang.String name,
int condition,
java.lang.Object value)
clone
public DefaultVariableConditionalSlot clone()
- Overrides:
clone in class DefaultConditionalSlot
- See Also:
org.jactr.core.utils.Duplicateable#duplicate()
setName
public void setName(java.lang.String name)
- Description copied from interface:
IMutableVariableNameSlot
- set the name of the slot, fully resolving it. if the name
has already been resolved (i.e.
IVariableNameSlot.isVariableName() returns
false), the name is not changed.
- Specified by:
setName in interface IMutableVariableNameSlot
isVariableName
public boolean isVariableName()
- Description copied from interface:
IVariableNameSlot
- does this slot's name correspond to an unresolved variable
- Specified by:
isVariableName in interface IVariableNameSlot
- Returns:
matchesCondition
public boolean matchesCondition(java.lang.Object test)
- if the name is still variablized, return false
- Specified by:
matchesCondition in interface IConditionalSlot- Overrides:
matchesCondition in class DefaultConditionalSlot
- Parameters:
test -
- Returns:
- See Also:
DefaultConditionalSlot.matchesCondition(java.lang.Object)