org.jactr.core.slot
Class DefaultMutableSlot

java.lang.Object
  extended by org.jactr.core.slot.BasicSlot
      extended by org.jactr.core.slot.DefaultMutableSlot
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable<ISlot>, IMutableSlot, ISlot
Direct Known Subclasses:
ChunkSlot, ChunkTypeSlot, DefaultConditionalSlot

public class DefaultMutableSlot
extends BasicSlot
implements IMutableSlot

Author:
harrison TODO To change the template for this generated type comment go to Window - Preferences - Java - Code Style - Code Templates

Constructor Summary
DefaultMutableSlot(ISlot slot)
           
DefaultMutableSlot(java.lang.String name)
           
DefaultMutableSlot(java.lang.String name, java.lang.Object value)
           
 
Method Summary
 DefaultMutableSlot clone()
           
 boolean equals(java.lang.Object obj)
           
 int hashCode()
          value is intentionally excluded since we dont want the hash to change..
 void setValue(java.lang.Object value)
           
 
Methods inherited from class org.jactr.core.slot.BasicSlot
compareTo, equalValues, 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
 

Constructor Detail

DefaultMutableSlot

public DefaultMutableSlot(java.lang.String name,
                          java.lang.Object value)
Parameters:
name -
value -

DefaultMutableSlot

public DefaultMutableSlot(java.lang.String name)

DefaultMutableSlot

public DefaultMutableSlot(ISlot slot)
Method Detail

clone

public DefaultMutableSlot clone()
Overrides:
clone in class BasicSlot
See Also:
org.jactr.core.utils.Duplicateable#duplicate()

setValue

public void setValue(java.lang.Object value)
Specified by:
setValue in interface IMutableSlot
See Also:
IMutableSlot.setValue(java.lang.Object)

hashCode

public int hashCode()
value is intentionally excluded since we dont want the hash to change..

Overrides:
hashCode in class BasicSlot

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class BasicSlot