org.jactr.core.production.condition
Class AbstractSlotCondition

java.lang.Object
  extended by org.jactr.core.production.condition.AbstractSlotCondition
All Implemented Interfaces:
ICondition, ISlotContainer
Direct Known Subclasses:
AbstractBufferCondition, ChunkPattern, ProxyCondition, SystemPropertyCondition

public abstract class AbstractSlotCondition
extends java.lang.Object
implements ICondition, ISlotContainer

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

Constructor Summary
AbstractSlotCondition()
           
 
Method Summary
 void addSlot(ISlot slot)
          Adds a slot
 void dispose()
          called when we are sure we are done with this condition
 java.util.Collection<? extends IConditionalSlot> getConditionalSlots()
           
 java.util.Collection<? extends ISlot> getSlots()
          violates the ISlotContainer#getSlots() contract that they be a copy why? because each condition is fully duplicated during instantiation so we will be the only modifiers of this..
 java.util.Collection<ISlot> getSlots(java.util.Collection<ISlot> container)
           
 void removeSlot(ISlot slot)
          remove a slot
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jactr.core.production.condition.ICondition
bind, clone
 

Constructor Detail

AbstractSlotCondition

public AbstractSlotCondition()
Method Detail

dispose

public void dispose()
Description copied from interface: ICondition
called when we are sure we are done with this condition

Specified by:
dispose in interface ICondition
See Also:
ICondition.dispose()

getSlots

public java.util.Collection<? extends ISlot> getSlots()
violates the ISlotContainer#getSlots() contract that they be a copy why? because each condition is fully duplicated during instantiation so we will be the only modifiers of this..

Specified by:
getSlots in interface ISlotContainer
Returns:
The slots value
See Also:
ISlotContainer.getSlots()

getSlots

public java.util.Collection<ISlot> getSlots(java.util.Collection<ISlot> container)
Specified by:
getSlots in interface ISlotContainer

getConditionalSlots

public java.util.Collection<? extends IConditionalSlot> getConditionalSlots()

addSlot

public void addSlot(ISlot slot)
Description copied from interface: ISlotContainer
Adds a slot

Specified by:
addSlot in interface ISlotContainer
Parameters:
slot - The feature to be added to the ISlot attribute
See Also:
ISlotContainer.addSlot(ISlot)

removeSlot

public void removeSlot(ISlot slot)
Description copied from interface: ISlotContainer
remove a slot

Specified by:
removeSlot in interface ISlotContainer
Parameters:
slot - Description of Parameter
See Also:
ISlotContainer.removeSlot(ISlot)

toString

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