de.jiac.micro.agent.memory
Interface ILongTermMemory

All Superinterfaces:
IHandle

public interface ILongTermMemory
extends IHandle

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.

Author:
Marcel Patzlaff

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

memorise

void memorise(IFact knowledge)
Puts new knowledge into the memory.

Parameters:
knowledge - the new knowledge to memorise

rememberNewest

IFact rememberNewest(Class factType)
Obtains the last memorised knowledge of the specified type.

Parameters:
factType - the type of knowledge to check
Returns:
the latest memorised instance or null if none was found

rememberOldest

IFact rememberOldest(Class factType)
Obtains the first memorised knowledge of the specified type.

Parameters:
factType - the type of knowledge to check
Returns:
the first memorised instance or null if none was found

rememberAll

Enumeration rememberAll(Class factType)
Obtains all memorised knowledge instances of the specified type.

Parameters:
factType - the type of knowledge to retrieve
Returns:
an enumeration about all memorised instances.

forget

void forget(IFact knowlegde)
Removes the specific knowledge instance from this memory.

Parameters:
knowlegde - the knowledge to remove

forgetAll

void forgetAll(Class factType)
Removes all knowledge instances of the specified type.

Parameters:
factType - the type of knowledge to remove


Copyright © 2008-2011 DAI-Labor. All Rights Reserved.