|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ILongTermMemory
This interface describes the capabilities of a long term memory.
There is no garanty on how long the data will be stored. This depends on the kind of implementation the specific platform provides.
| Method Summary | |
|---|---|
void |
forget(IFact knowlegde)
Removes the specific knowledge instance from this memory. |
void |
forgetAll(Class factType)
Removes all knowledge instances of the specified type. |
void |
memorise(IFact knowledge)
Puts new knowledge into the memory. |
Enumeration |
rememberAll(Class factType)
Obtains all memorised knowledge instances of the specified type. |
IFact |
rememberNewest(Class factType)
Obtains the last memorised knowledge of the specified type. |
IFact |
rememberOldest(Class factType)
Obtains the first memorised knowledge of the specified type. |
| Method Detail |
|---|
void memorise(IFact knowledge)
knowledge - the new knowledge to memoriseIFact rememberNewest(Class factType)
factType - the type of knowledge to check
null if none was foundIFact rememberOldest(Class factType)
factType - the type of knowledge to check
null if none was foundEnumeration rememberAll(Class factType)
factType - the type of knowledge to retrieve
void forget(IFact knowlegde)
knowlegde - the knowledge to removevoid forgetAll(Class factType)
factType - the type of knowledge to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||