|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pandora.knowledge.BasicMemory
org.pandora.knowledge.xml.XMLMemory
public class XMLMemory
Defines a set of networks that make up a knowledge base. Defines long term, short term and flash networks. Basic implementation using xml file storage for persistence.
Field Summary | |
---|---|
static java.lang.String |
knowledgeBaseFileName
|
Constructor Summary | |
---|---|
XMLMemory()
|
Method Summary | |
---|---|
void |
restore()
Reload the long-term memory from the XML file. |
void |
save()
Write the long-term memory to the XML file. |
Methods inherited from class org.pandora.knowledge.BasicMemory |
---|
abort, addActiveMemory, addListener, createMemory, deleteMemory, destroyMemory, getActiveMemory, getListeners, getLongTermMemory, getMemoryName, getPandora, getShortTermMemory, importMemory, initialize, newMemory, restore, setActiveMemory, setLongTermMemory, setPandora, setShortTermMemory, shutdown, switchMemory, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.lang.String knowledgeBaseFileName
Constructor Detail |
---|
public XMLMemory()
Method Detail |
---|
public void save() throws MemoryStorageException
save
in interface Memory
save
in class BasicMemory
MemoryStorageException
public void restore()
restore
in interface Memory
restore
in class BasicMemory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |