de.cesr.lara.components.container.memory.impl
Class LDefaultLimitedCapacityOverwriteBoMemory<BO extends LaraBehaviouralOption<?,BO>>
java.lang.Object
de.cesr.lara.components.container.memory.impl.LDefaultLimitedCapacityOverwriteMemory<BO>
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
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 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 |
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
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