public class DefaultLogicalSlot extends BasicSlot implements ILogicalSlot, IMutableSlot
AND, NOT, OR
Constructor and Description |
---|
DefaultLogicalSlot(int operator,
java.util.Collection<? extends ISlot> slots) |
DefaultLogicalSlot(int operator,
ISlot value1,
ISlot value2) |
Modifier and Type | Method and Description |
---|---|
void |
addSlot(ISlot slot)
Adds a slot
|
DefaultLogicalSlot |
clone() |
protected java.lang.String |
createToString() |
boolean |
equals(java.lang.Object obj) |
int |
getOperator() |
java.util.Collection<? extends ISlot> |
getSlots()
return a duplicate copy of all the slots
|
java.util.Collection<ISlot> |
getSlots(java.util.Collection<ISlot> container) |
int |
hashCode() |
boolean |
isVariable()
slots may contain variables, which are currently hardcoded
as strings starting with '='
|
boolean |
isVariableValue()
checks to see if the slot value is a variable.
|
void |
removeSlot(ISlot slot)
remove a slot
|
void |
setOperator(int operator) |
void |
setValue(java.lang.Object value) |
clearToString, compareTo, equalValues, getName, getValue, setNameInternal, setValueInternal, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
equalValues, getName, getValue
public DefaultLogicalSlot(int operator, ISlot value1, ISlot value2) throws CannotInstantiateException
CannotInstantiateException
public DefaultLogicalSlot(int operator, java.util.Collection<? extends ISlot> slots)
public boolean isVariable()
ISlot
isVariable
in interface ISlot
isVariable
in class BasicSlot
public boolean isVariableValue()
BasicSlot
isVariableValue
in interface ISlot
isVariableValue
in class BasicSlot
ISlot.isVariable()
public int getOperator()
getOperator
in interface ILogicalSlot
public void setOperator(int operator)
setOperator
in interface ILogicalSlot
public DefaultLogicalSlot clone()
protected java.lang.String createToString()
createToString
in class BasicSlot
public void setValue(java.lang.Object value)
setValue
in interface IMutableSlot
public java.util.Collection<? extends ISlot> getSlots()
ISlotContainer
getSlots
in interface ISlotContainer
public java.util.Collection<ISlot> getSlots(java.util.Collection<ISlot> container)
getSlots
in interface ISlotContainer
public void addSlot(ISlot slot)
ISlotContainer
addSlot
in interface ISlotContainer
slot
- The feature to be added to the ISlot attributepublic void removeSlot(ISlot slot)
ISlotContainer
removeSlot
in interface ISlotContainer
slot
- Description of Parameter