org.pandora.knowledge.xml
Class XMLMemory

java.lang.Object
  extended by org.pandora.knowledge.BasicMemory
      extended by org.pandora.knowledge.xml.XMLMemory
All Implemented Interfaces:
Memory

public class XMLMemory
extends BasicMemory

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

knowledgeBaseFileName

public static java.lang.String knowledgeBaseFileName
Constructor Detail

XMLMemory

public XMLMemory()
Method Detail

save

public void save()
          throws MemoryStorageException
Write the long-term memory to the XML file.

Specified by:
save in interface Memory
Overrides:
save in class BasicMemory
Throws:
MemoryStorageException

restore

public void restore()
Reload the long-term memory from the XML file.

Specified by:
restore in interface Memory
Overrides:
restore in class BasicMemory