org.jactr.core.production.action
Class DefaultSlotAction

java.lang.Object
  extended by org.jactr.core.production.action.DefaultAction
      extended by org.jactr.core.production.action.DefaultSlotAction
All Implemented Interfaces:
IAction, ISlotContainer, IUniqueSlotContainer

public abstract class DefaultSlotAction
extends DefaultAction
implements IUniqueSlotContainer


Constructor Summary
DefaultSlotAction()
           
 
Method Summary
 void addSlot(ISlot slot)
          Adds a slot
 ISlot getSlot(java.lang.String slotName)
          return the actual named slot.
 java.util.Collection<? extends ISlot> getSlots()
          return a duplicate copy of all the slots
 java.util.Collection<ISlot> getSlots(java.util.Collection<ISlot> container)
           
 void removeSlot(ISlot slot)
          remove a slot
 
Methods inherited from class org.jactr.core.production.action.DefaultAction
dispose, fire, resolve
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jactr.core.production.action.IAction
bind
 

Constructor Detail

DefaultSlotAction

public DefaultSlotAction()
Method Detail

getSlot

public ISlot getSlot(java.lang.String slotName)
Description copied from interface: IUniqueSlotContainer
return the actual named slot. this is the backing slot, changes to it are propogated throughout the model

Specified by:
getSlot in interface IUniqueSlotContainer
Returns:

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

getSlots

public java.util.Collection<? extends ISlot> getSlots()
Description copied from interface: ISlotContainer
return a duplicate copy of all the slots

Specified by:
getSlots in interface ISlotContainer
Returns:
The slots value

getSlots

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

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