org.jactr.core.slot
Class ProxyUniqueSlotContainer

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

public class ProxyUniqueSlotContainer
extends java.lang.Object
implements IUniqueSlotContainer


Constructor Summary
ProxyUniqueSlotContainer(IUniqueSlotContainer container)
           
 
Method Summary
 void addSlot(ISlot slot)
          Adds a slot
 void addSlotContainer(IUniqueSlotContainer container)
           
 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
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProxyUniqueSlotContainer

public ProxyUniqueSlotContainer(IUniqueSlotContainer container)
Method Detail

toString

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

addSlotContainer

public void addSlotContainer(IUniqueSlotContainer container)

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

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