de.cesr.lara.components.container.memory.impl
Class LDefaultLimitedCapacityBOMemory<BOType extends LaraBehaviouralOption<?,? extends BOType>>
java.lang.Object
de.cesr.lara.components.container.memory.impl.LDefaultMemory<PropertyType>
de.cesr.lara.components.container.memory.impl.LDefaultLimitedCapacityMemory<BOType>
de.cesr.lara.components.container.memory.impl.LDefaultLimitedCapacityBOMemory<BOType>
- Type Parameters:
BOType
- the type of behavioural options this memory may store
- All Implemented Interfaces:
- LaraCapacityManageableContainer<BOType>, LaraContainer<BOType>, LaraBOMemory<BOType>, LaraMemory<BOType>, LaraStorageListener, Iterable<BOType>
public class LDefaultLimitedCapacityBOMemory<BOType extends LaraBehaviouralOption<?,? extends BOType>>
- extends LDefaultLimitedCapacityMemory<BOType>
- implements LaraBOMemory<BOType>
Methods inherited from class de.cesr.lara.components.container.memory.impl.LDefaultMemory |
addMemoryPropertyObserver, clear, contains, contains, contains, contains, contains, createBackingStorage, forget, forget, forgetAll, forgetAll, getAllPropertyKeys, getDefaultRetentionTime, getName, getRetentionTime, getSize, isEmpty, iterator, recall, recall, recall, recall, recallAll, recallAll, recallAll, refresh, refresh, refresh, refresh, refresh, removeMemoryPropertyObserver, 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 |
LDefaultLimitedCapacityBOMemory
public LDefaultLimitedCapacityBOMemory(LaraCapacityManager<BOType> capacityManager)
- Parameters:
capacityManager
-
LDefaultLimitedCapacityBOMemory
public LDefaultLimitedCapacityBOMemory(LaraCapacityManager<BOType> capacityManager,
int initialCapacity)
- Parameters:
capacityManager
- initialCapacity
-
LDefaultLimitedCapacityBOMemory
public LDefaultLimitedCapacityBOMemory(LaraCapacityManager<BOType> capacityManager,
int initialCapacity,
String name)
- Parameters:
capacityManager
- initialCapacity
- name
- the memory's name
LDefaultLimitedCapacityBOMemory
public LDefaultLimitedCapacityBOMemory(LaraCapacityManager<BOType> capacityManager,
String name)
- Parameters:
capacityManager
- name
- the memory's name
memoriseAll
public void memoriseAll(Set<BOType> bos)
- Description copied from interface:
LaraBOMemory
- Memorises the given set of behavioural options
- Specified by:
memoriseAll
in interface LaraBOMemory<BOType extends LaraBehaviouralOption<?,? extends BOType>>
- Parameters:
bos
- behavioural options to memorise- See Also:
LaraBOMemory.memoriseAll(java.util.Set)
recallAllMostRecent
public Set<BOType> 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<BOType extends LaraBehaviouralOption<?,? extends BOType>>
- Returns:
- for every behavioural option the one that was stored at last.
- Throws:
LRetrieveException
- See Also:
LaraBOMemory.recallAllMostRecent()