org.jactr.core.slot
Class BasicSlot
java.lang.Object
org.jactr.core.slot.BasicSlot
- All Implemented Interfaces:
- java.lang.Cloneable, java.lang.Comparable<ISlot>, ISlot
- Direct Known Subclasses:
- DefaultMutableSlot
public class BasicSlot
- extends java.lang.Object
- implements ISlot, java.lang.Comparable<ISlot>
- Author:
- harrison TODO To change the template for this generated type comment
go to Window - Preferences - Java - Code Style - Code Templates
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
BasicSlot
public BasicSlot(java.lang.String name)
BasicSlot
public BasicSlot(java.lang.String name,
java.lang.Object value)
BasicSlot
public BasicSlot(ISlot slot)
getValue
public java.lang.Object getValue()
- Specified by:
getValue in interface ISlot
- See Also:
ISlot.getValue()
getName
public java.lang.String getName()
- Specified by:
getName in interface ISlot
- See Also:
ISlot.getName()
equalValues
public boolean equalValues(java.lang.Object test)
- Specified by:
equalValues in interface ISlot
- See Also:
ISlot.equalValues(java.lang.Object)
equals
public boolean equals(java.lang.Object value)
- equality is only defined as equal names
- Overrides:
equals in class java.lang.Object
- See Also:
Object.equals(java.lang.Object)
clone
public BasicSlot clone()
- Overrides:
clone in class java.lang.Object
- See Also:
org.jactr.core.utils.Duplicateable#duplicate()
isVariable
public boolean isVariable()
- checks to see if the slot value is a variable. Three things must be true:
1) the value must be a string
2) it must start with "="
3) it must have no white spaces (so that resolvable strings such as "=chunk
has been retrieved" can be resolved dynamically)
- Specified by:
isVariable in interface ISlot
- See Also:
IConditionalSlot.isVariable()
compareTo
public int compareTo(ISlot compSlot)
- Specified by:
compareTo in interface java.lang.Comparable<ISlot>
- See Also:
Comparable.compareTo(java.lang.Object)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object