org.jactr.core.slot
Class UniqueSlotContainer

java.lang.Object
  extended by org.jactr.core.slot.UniqueSlotContainer
All Implemented Interfaces:
ISlotContainer, IUniqueSlotContainer

public class UniqueSlotContainer
extends java.lang.Object
implements IUniqueSlotContainer


Constructor Summary
UniqueSlotContainer()
           
UniqueSlotContainer(boolean useMutableSlots)
           
UniqueSlotContainer(IUniqueSlotContainer container, boolean useMutableSlots)
           
 
Method Summary
 void addSlot(ISlot slot)
          Adds a slot
 java.util.Collection<IMutableSlot> getMutableSlots()
           
 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> slots)
           
 void removeSlot(ISlot slot)
          remove a slot
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniqueSlotContainer

public UniqueSlotContainer()

UniqueSlotContainer

public UniqueSlotContainer(boolean useMutableSlots)

UniqueSlotContainer

public UniqueSlotContainer(IUniqueSlotContainer container,
                           boolean useMutableSlots)
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> slots)
Specified by:
getSlots in interface ISlotContainer

getMutableSlots

public java.util.Collection<IMutableSlot> getMutableSlots()

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