de.cesr.lara.components.container.memory
Interface LaraBOMemory<BO extends LaraBehaviouralOption<?,? extends BO>>

Type Parameters:
BO - type of behavioural options this memory may store
All Superinterfaces:
Iterable<BO>, LaraContainer<BO>, LaraMemory<BO>
All Known Implementing Classes:
LDefaultLimitedCapacityBOMemory, LDefaultLimitedCapacityOverwriteBoMemory

public interface LaraBOMemory<BO extends LaraBehaviouralOption<?,? extends BO>>
extends LaraMemory<BO>

Interface for memories of behavioural options that ensures that properties are of type LaraBehaviouralOption.


Field Summary
 
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
 
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 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
 

Method Detail

memoriseAll

void memoriseAll(Set<BO> bos)
Memorises the given set of behavioural options

Parameters:
bos - behavioural options to memorise

recallAllMostRecent

Set<BO> recallAllMostRecent()
                                                                          throws LRetrieveException
Generic method that returns a collection of the most recently memorised BO for all behavioural options.

Returns:
for every behavioural option the one that was stored at last.
Throws:
LRetrieveException