public class LongTermMemory
extends java.lang.Object
| Constructor and Description |
|---|
LongTermMemory(RawMemory rawMemory)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Avoids cloning.
|
static byte[] |
getBytesFromFile(java.io.File file)
This method receive a object "File" as parameter and return the contents of the file in a byte array.
|
void |
learn(MemoryObject mo)
Stores Information of a given type in long term memory.
|
void |
printLTM()
Prints all active content in ltm.
|
MemoryObject |
retrieve(java.lang.String type,
java.lang.String info)
Retrieves from long term memory a given type and info of memory object.
|
void |
shutDown()
Clears LTM from memory.
|
void |
totalClearLTM()
WARNING:
Clears everything from LTM, both from ram and disk.
|
public LongTermMemory(RawMemory rawMemory)
rawMemory - public static byte[] getBytesFromFile(java.io.File file)
throws java.io.IOException
file - the file to get bytes fromjava.io.IOException - IOExceptionpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic void learn(MemoryObject mo)
mo - public MemoryObject retrieve(java.lang.String type, java.lang.String info)
type - info - public void totalClearLTM()
public void printLTM()
public void shutDown()