|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Memory
Defines a set of networks that make up a knowledge base. Defines long term, short term and active networks. Handle persistence of networks and merging of network spaces from short term to long term.
Method Summary | |
---|---|
void |
abort()
Reset the short term and active memories. |
Vertex |
addActiveMemory(Vertex vertex)
Add the sensory data to the active memory. |
void |
addListener(MemoryEventListener listener)
Add the memory listener. |
void |
createMemory(java.lang.String database)
Create a memory database. |
void |
deleteMemory()
Delete all content from the database. |
void |
destroyMemory(java.lang.String database)
Destroy the database. |
java.util.Queue<Vertex> |
getActiveMemory()
Active memory represents the last sensory state. |
Network |
getLongTermMemory()
Represents the persisted memory (or cache there of). |
java.lang.String |
getMemoryName()
Return the current connected database name. |
Pandora |
getPandora()
|
Network |
getShortTermMemory()
Represents a non-committed transactional memory. |
void |
importMemory(java.lang.String location)
Allow import of another memory location. |
void |
initialize(java.util.Map<java.lang.String,java.lang.Object> properties)
Initialize any configurable settings from the properties. |
Network |
newMemory()
Return an isolated transactional memory. |
void |
restore()
Restores the memory from a persisted state. |
void |
restore(java.lang.String database)
Restores the memory from a persisted state. |
void |
save()
Merge the short term memory into the long term and clears the short term. |
void |
setPandora(Pandora pandora)
|
void |
shutdown()
Shutdown the memory. |
void |
switchMemory(java.lang.String location)
Allow switching to another memory location. |
Method Detail |
---|
java.util.Queue<Vertex> getActiveMemory()
Vertex addActiveMemory(Vertex vertex)
Network getShortTermMemory()
Network newMemory()
Network getLongTermMemory()
void save() throws MemoryStorageException
MemoryStorageException
void restore() throws MemoryStorageException
MemoryStorageException
void restore(java.lang.String database) throws MemoryStorageException
MemoryStorageException
java.lang.String getMemoryName()
void createMemory(java.lang.String database)
void destroyMemory(java.lang.String database)
void deleteMemory()
void importMemory(java.lang.String location)
void shutdown()
void switchMemory(java.lang.String location)
void abort()
Pandora getPandora()
void setPandora(Pandora pandora)
void initialize(java.util.Map<java.lang.String,java.lang.Object> properties)
void addListener(MemoryEventListener listener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |