org.jactr.core.slot
Class DefaultVariableConditionalSlot

java.lang.Object
  extended by org.jactr.core.slot.BasicSlot
      extended by org.jactr.core.slot.DefaultMutableSlot
          extended by org.jactr.core.slot.DefaultConditionalSlot
              extended by 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


Field Summary
 
Fields inherited from class org.jactr.core.slot.DefaultConditionalSlot
EPSILON
 
Fields inherited from interface org.jactr.core.slot.IConditionalSlot
EQUALS, GREATER_THAN, GREATER_THAN_EQUALS, LESS_THAN, LESS_THAN_EQUALS, NOT_EQUALS, WITHIN
 
Constructor Summary
DefaultVariableConditionalSlot(ISlot slot)
           
DefaultVariableConditionalSlot(java.lang.String name, int condition, java.lang.Object value)
           
DefaultVariableConditionalSlot(java.lang.String name, java.lang.Object value)
           
 
Method Summary
 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.
 
Methods inherited from class org.jactr.core.slot.DefaultConditionalSlot
equals, equalValues, getCondition, hashCode, setCondition
 
Methods inherited from class org.jactr.core.slot.DefaultMutableSlot
setValue
 
Methods inherited from class org.jactr.core.slot.BasicSlot
compareTo, getName, getValue, isVariable, isVariableValue, setOwner, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jactr.core.slot.ISlot
equalValues, getName, getValue, isVariable, isVariableValue
 
Methods inherited from interface org.jactr.core.slot.IMutableSlot
setValue
 

Constructor Detail

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

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)