de.cesr.lara.components.container.memory.impl
Class LDefaultLimitedCapacityOverwriteBoMemory<BO extends LaraBehaviouralOption<?,BO>>

java.lang.Object
  extended by de.cesr.lara.components.container.memory.impl.LDefaultLimitedCapacityOverwriteMemory<BO>
      extended by de.cesr.lara.components.container.memory.impl.LDefaultLimitedCapacityOverwriteBoMemory<BO>
Type Parameters:
BO - the type of behavioural options to manage
All Implemented Interfaces:
LaraCapacityManageableContainer<BO>, LaraContainer<BO>, LaraBOMemory<BO>, LaraMemory<BO>, LaraOverwriteMemory<BO>, LaraStorageListener, Iterable<BO>

public class LDefaultLimitedCapacityOverwriteBoMemory<BO extends LaraBehaviouralOption<?,BO>>
extends LDefaultLimitedCapacityOverwriteMemory<BO>
implements LaraBOMemory<BO>

The LaraBOMemory version of LDefaultLimitedCapacityOverwriteMemory


Nested Class Summary
 
Nested classes/interfaces inherited from interface de.cesr.lara.components.container.storage.LaraStorageListener
LaraStorageListener.StorageEvent
 
Field Summary
 
Fields inherited from class de.cesr.lara.components.container.memory.impl.LDefaultLimitedCapacityOverwriteMemory
DEFAULT_INITIAL_CAPACITY
 
Fields inherited from interface de.cesr.lara.components.container.memory.LaraMemory
UNLIMITED_RETENTION
 
Fields inherited from interface de.cesr.lara.components.container.LaraContainer
UNLIMITED_CAPACITY
 
Constructor Summary
LDefaultLimitedCapacityOverwriteBoMemory(LaraCapacityManager<BO> capacityManager)
           
LDefaultLimitedCapacityOverwriteBoMemory(LaraCapacityManager<BO> capacityManager, int initialCapacity)
           
LDefaultLimitedCapacityOverwriteBoMemory(LaraCapacityManager<BO> capacityManager, int initialCapacity, String name)
           
LDefaultLimitedCapacityOverwriteBoMemory(LaraCapacityManager<BO> capacityManager, String name)
           
 
Method Summary
 void memoriseAll(Set<BO> bos)
          Memorises the given set of behavioural options
 Set<BO> recallAllMostRecent()
          Generic method that returns a collection of the most recently memorised BO for all behavioural options.
 
Methods inherited from class de.cesr.lara.components.container.memory.impl.LDefaultLimitedCapacityOverwriteMemory
addMemoryPropertyObserver, clear, contains, contains, contains, contains, contains, createBackingStorage, forget, forget, forget, forgetAll, forgetAll, getAllPropertyKeys, getCapacity, getCapacityManagementView, getCapacityManager, getDefaultRetentionTime, getName, getRetentionTime, getSize, isEmpty, isFull, iterator, memorize, memorize, recall, recall, recall, recall, recallAll, recallAll, recallAll, refresh, refresh, refresh, refresh, refresh, removeMemoryPropertyObserver, setCapacity, setCapacityManager, setDefaultRetentionTime, storageEventOccured, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.cesr.lara.components.container.memory.LaraMemory
addMemoryPropertyObserver, clear, contains, contains, contains, contains, contains, forget, forget, forgetAll, forgetAll, getAllPropertyKeys, getDefaultRetentionTime, getName, getRetentionTime, memorize, memorize, recall, recall, recall, recall, recallAll, recallAll, recallAll, refresh, refresh, refresh, refresh, refresh, removeMemoryPropertyObserver, setDefaultRetentionTime
 
Methods inherited from interface de.cesr.lara.components.container.LaraContainer
getCapacity, getSize, isEmpty, isFull
 
Methods inherited from interface java.lang.Iterable
iterator
 

Constructor Detail

LDefaultLimitedCapacityOverwriteBoMemory

public LDefaultLimitedCapacityOverwriteBoMemory(LaraCapacityManager<BO> capacityManager)
Parameters:
capacityManager -

LDefaultLimitedCapacityOverwriteBoMemory

public LDefaultLimitedCapacityOverwriteBoMemory(LaraCapacityManager<BO> capacityManager,
                                                int initialCapacity)
Parameters:
capacityManager -
initialCapacity -

LDefaultLimitedCapacityOverwriteBoMemory

public LDefaultLimitedCapacityOverwriteBoMemory(LaraCapacityManager<BO> capacityManager,
                                                int initialCapacity,
                                                String name)
Parameters:
capacityManager -
initialCapacity -
name - the memory's name

LDefaultLimitedCapacityOverwriteBoMemory

public LDefaultLimitedCapacityOverwriteBoMemory(LaraCapacityManager<BO> capacityManager,
                                                String name)
Parameters:
capacityManager -
name - the memory's name
Method Detail

memoriseAll

public void memoriseAll(Set<BO> bos)
Description copied from interface: LaraBOMemory
Memorises the given set of behavioural options

Specified by:
memoriseAll in interface LaraBOMemory<BO extends LaraBehaviouralOption<?,BO>>
Parameters:
bos - behavioural options to memorise

recallAllMostRecent

public Set<BO> recallAllMostRecent()
                                                                throws LRetrieveException
Description copied from interface: LaraBOMemory
Generic method that returns a collection of the most recently memorised BO for all behavioural options.

Specified by:
recallAllMostRecent in interface LaraBOMemory<BO extends LaraBehaviouralOption<?,BO>>
Returns:
for every behavioural option the one that was stored at last.
Throws:
LRetrieveException