org.jactr.core.slot
Interface ISlot

All Superinterfaces:
java.lang.Cloneable
All Known Subinterfaces:
IConditionalSlot, IMutableSlot, IMutableVariableNameSlot, IVariableNameSlot
All Known Implementing Classes:
BasicSlot, ChunkSlot, ChunkTypeSlot, DefaultConditionalSlot, DefaultMutableSlot, DefaultVariableConditionalSlot, ImmutableSlotWrapper

public interface ISlot
extends java.lang.Cloneable

basic slot definition. slots are just key-value pairs that can be matched against, or conditionalized.


Method Summary
 boolean equalValues(java.lang.Object value)
           
 java.lang.String getName()
          the name of the slot
 java.lang.Object getValue()
          return the value of the slot.
 boolean isVariable()
          Deprecated. 
 boolean isVariableValue()
          does the value of the slot represent an unresolved variable?
 

Method Detail

getName

java.lang.String getName()
the name of the slot

Returns:

isVariable

@Deprecated
boolean isVariable()
Deprecated. 

slots may contain variables, which are currently hardcoded as strings starting with '='

Returns:
See Also:

isVariableValue

boolean isVariableValue()
does the value of the slot represent an unresolved variable?

Returns:

getValue

java.lang.Object getValue()
return the value of the slot. if the slot is a variable, this returns the string name of the variable

Returns:
may be null

equalValues

boolean equalValues(java.lang.Object value)