org.jactr.core.slot
Class DefaultConditionalSlot
java.lang.Object
org.jactr.core.slot.BasicSlot
org.jactr.core.slot.DefaultMutableSlot
org.jactr.core.slot.DefaultConditionalSlot
- All Implemented Interfaces:
- java.lang.Cloneable, java.lang.Comparable<ISlot>, IConditionalSlot, IMutableSlot, ISlot
- Direct Known Subclasses:
- DefaultVariableConditionalSlot
public class DefaultConditionalSlot
- extends DefaultMutableSlot
- implements IConditionalSlot
- Author:
- harrison TODO To change the template for this generated type comment
go to Window - Preferences - Java - Code Style - Code Templates
|
Field Summary |
static double |
EPSILON
|
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
EPSILON
public static final double EPSILON
- See Also:
- Constant Field Values
DefaultConditionalSlot
public DefaultConditionalSlot(java.lang.String name,
java.lang.Object value)
- Parameters:
name - value -
DefaultConditionalSlot
public DefaultConditionalSlot(java.lang.String name,
int condition,
java.lang.Object value)
DefaultConditionalSlot
public DefaultConditionalSlot(ISlot slot)
clone
public DefaultConditionalSlot clone()
- Overrides:
clone in class DefaultMutableSlot
- See Also:
org.jactr.core.utils.Duplicateable#duplicate()
getCondition
public int getCondition()
- Specified by:
getCondition in interface IConditionalSlot
- See Also:
IConditionalSlot.getCondition()
setCondition
public void setCondition(int condition)
- Specified by:
setCondition in interface IConditionalSlot
- See Also:
IConditionalSlot.setCondition(int)
matchesCondition
public boolean matchesCondition(java.lang.Object test)
- Description copied from interface:
IConditionalSlot
- test the value to see if it satisfies the condition specified by this
conditional slot
- Specified by:
matchesCondition in interface IConditionalSlot
- Returns:
equalValues
public boolean equalValues(java.lang.Object value)
- Specified by:
equalValues in interface ISlot- Overrides:
equalValues in class BasicSlot
- See Also:
ISlot.equalValues(java.lang.Object)
hashCode
public int hashCode()
- Description copied from class:
DefaultMutableSlot
- value is intentionally excluded since we dont want the hash to change..
- Overrides:
hashCode in class DefaultMutableSlot
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class DefaultMutableSlot