public interface Memory
Modifier and Type | Method and Description |
---|---|
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 |
awake() |
int |
cacheSize() |
void |
clearProperties(java.lang.String propertySet) |
void |
createMemory(java.lang.String database)
Create a memory database.
|
void |
createMemory(java.lang.String database,
boolean isSchema)
Create a memory database.
|
void |
createMemoryFromTemplate(java.lang.String database,
boolean isSchema,
java.lang.String template,
boolean templateIsSchema)
Create a memory database.
|
void |
createMemoryFromTemplate(java.lang.String database,
java.lang.String template)
Create a memory database.
|
void |
deleteMemory()
Delete all content from the database.
|
void |
destroyMemory(java.lang.String database)
Destroy the database.
|
void |
destroyMemory(java.lang.String database,
boolean isSchema)
Destroy the database.
|
void |
fastRestore(java.lang.String database,
boolean isSchema)
Restores the memory from a persisted state.
|
void |
freeMemory() |
java.util.List<Vertex> |
getActiveMemory()
Active memory represents the last sensory state.
|
Bot |
getBot() |
Network |
getLongTermMemory()
Represents the persisted memory (or cache there of).
|
java.lang.String |
getMemoryName()
Return the current connected database name.
|
java.lang.String |
getProperty(java.lang.String property)
Return the property setting.
|
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.
|
void |
loadProperties(java.lang.String propertySet) |
Network |
newMemory()
Return an isolated transactional memory.
|
void |
pool()
Reset state when instance is pooled.
|
void |
removeListener(MemoryEventListener listener) |
java.lang.String |
removeProperty(java.lang.String property)
Remove the property setting.
|
void |
restore()
Restores the memory from a persisted state.
|
void |
restore(java.lang.String database,
boolean isSchema)
Restores the memory from a persisted state.
|
void |
save()
Merge the short term memory into the long term and clears the short term.
|
void |
setBot(Bot Bot) |
java.lang.String |
setProperty(java.lang.String property,
java.lang.String value)
Set the property setting.
|
void |
shutdown()
Shutdown the memory.
|
void |
switchMemory(java.lang.String location)
Allow switching to another memory location.
|
void |
switchMemory(java.lang.String location,
boolean isSchema)
Allow switching to another memory location.
|
java.util.List<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, boolean isSchema) throws MemoryStorageException
MemoryStorageException
void fastRestore(java.lang.String database, boolean isSchema) throws MemoryStorageException
MemoryStorageException
java.lang.String getMemoryName()
void createMemory(java.lang.String database)
void createMemory(java.lang.String database, boolean isSchema)
void createMemoryFromTemplate(java.lang.String database, java.lang.String template)
void createMemoryFromTemplate(java.lang.String database, boolean isSchema, java.lang.String template, boolean templateIsSchema)
void destroyMemory(java.lang.String database)
void destroyMemory(java.lang.String database, boolean isSchema)
void deleteMemory()
void importMemory(java.lang.String location)
void shutdown()
void pool()
void switchMemory(java.lang.String location)
void switchMemory(java.lang.String location, boolean isSchema)
void abort()
Bot getBot()
void setBot(Bot Bot)
void initialize(java.util.Map<java.lang.String,java.lang.Object> properties)
void awake()
void loadProperties(java.lang.String propertySet)
void clearProperties(java.lang.String propertySet)
java.lang.String getProperty(java.lang.String property)
java.lang.String setProperty(java.lang.String property, java.lang.String value)
java.lang.String removeProperty(java.lang.String property)
void addListener(MemoryEventListener listener)
void removeListener(MemoryEventListener listener)
int cacheSize()
void freeMemory()