|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--elge.memory.Memory
Memory is a simple object holder with an interface to easily acces the learned objects.
You can extends this class to make variation of memory, like memory that can lost some knowleadge in a time.. and so on...
Field Summary | |
protected Vector |
knownObjects
The learned objects till now |
Constructor Summary | |
Memory()
Creates a new instance of Memory |
Method Summary | |
boolean |
doIKnow(Object o)
Checks if the object is known. |
void |
forget(Object o)
Remove the object from memory.. |
Vector |
getKnownObjects()
Returns the known objects by this memory. |
void |
learn(Object o)
Just add a new object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Vector knownObjects
Constructor Detail |
public Memory()
Method Detail |
public boolean doIKnow(Object o)
o
- object to search
public void learn(Object o)
o
- the object to learnpublic void forget(Object o)
o
- what object to removepublic Vector getKnownObjects()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |