Interface Memory<T>
- Type Parameters:
T- The type of objects that the chunks in this memory can represents.
- All Known Subinterfaces:
ModifiableMemory<T>
- All Known Implementing Classes:
SortedListMemory
public interface Memory<T>
An activation-based memory.
- Since:
- 1.1.0
-
Method Summary
Modifier and Type Method Description Collection<Chunk<T>>getChunks(long timestamp, int maximumCount)Returns a limited number of chunks from memory after sorting the chunks in descending order by activation.
-
Method Details
-
getChunks
Returns a limited number of chunks from memory after sorting the chunks in descending order by activation.TODO: Maybe also add an accessor that limits by a maximum activation.
- Parameters:
timestamp- the point in time at which the access occurs (in the format returned bySystem.currentTimeMillis()maximumCount- The maximum number of chunks to return.- Returns:
- The collection containing up to
maximumCountchunks sorted, from highest to lowest activation.
-