org.jactr.core.slot
Class ImmutableSlotWrapper

java.lang.Object
  extended by org.jactr.core.slot.ImmutableSlotWrapper
All Implemented Interfaces:
java.lang.Cloneable, ISlot

public class ImmutableSlotWrapper
extends java.lang.Object
implements ISlot

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

Constructor Summary
ImmutableSlotWrapper(ISlot slot)
           
 
Method Summary
 ImmutableSlotWrapper clone()
           
 boolean equals(java.lang.Object value)
           
 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()
          slots may contain variables, which are currently hardcoded as strings starting with '='
 boolean isVariableValue()
          does the value of the slot represent an unresolved variable?
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImmutableSlotWrapper

public ImmutableSlotWrapper(ISlot slot)
Method Detail

getValue

public java.lang.Object getValue()
Description copied from interface: ISlot
return the value of the slot. if the slot is a variable, this returns the string name of the variable

Specified by:
getValue in interface ISlot
Returns:
may be null
See Also:
ISlot.getValue()

getName

public java.lang.String getName()
Description copied from interface: ISlot
the name of the slot

Specified by:
getName in interface ISlot
Returns:
See Also:
ISlot.getName()

equalValues

public boolean equalValues(java.lang.Object value)
Specified by:
equalValues in interface ISlot
See Also:
ISlot.equalValues(java.lang.Object)

equals

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

clone

public ImmutableSlotWrapper clone()
Overrides:
clone in class java.lang.Object
See Also:
org.jactr.core.utils.Duplicateable#duplicate()

isVariable

public boolean isVariable()
Description copied from interface: ISlot
slots may contain variables, which are currently hardcoded as strings starting with '='

Specified by:
isVariable in interface ISlot
Returns:
See Also:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isVariableValue

public boolean isVariableValue()
Description copied from interface: ISlot
does the value of the slot represent an unresolved variable?

Specified by:
isVariableValue in interface ISlot
Returns: