|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.ObjectdecisionMakingSystem.ItemMemory
public class ItemMemory
This module is rather simple. It works over a HashMap which uses AffordanceType as a key and contains lists of ItemRecords. The memory receives notifications about every perceived item, place, player and stores them to the presented structure. It stores items as ItemRecord. ItemRecord takes from item only its location, affordances and cathegory and has some other atributes which the episodic information. Those are seen, missed, found and time. As we can see from their names they say how many times agent saw the item, looked for it successfuly/unsuccessfully and when the last change happened. This information is then used to calculate the truthfullness � e.g. How much does the agent think that the item/place/player will be at the stored location. The probability is counted according to the following formula: . it is used to respond to the memory querry invoked by SearchMemory from Want intention
| Constructor Summary | |
|---|---|
ItemMemory(Logger log)
|
|
| Method Summary | |
|---|---|
void |
addItemToMemory(EItem item,
int time,
int state)
adds new item to the ItemMemory or updates its record |
void |
dailyReport()
just reports the state of the ItemMemory - to give a user some idea now many things are stored etc. |
ArrayList<ItemRecord> |
getLocationOfAffordances(AffordanceType aff,
int counter)
Note it return at least the most probable even thought it will have like 2%, as it is better to try that than go random |
void |
oblivion(int counter)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ItemMemory(Logger log)
| Method Detail |
|---|
public void addItemToMemory(EItem item,
int time,
int state)
item - - new item to addtime - - when we are adding - number of steps of the logicstate - 0 - use, 1 - seenpublic void dailyReport()
public ArrayList<ItemRecord> getLocationOfAffordances(AffordanceType aff,
int counter)
aff - counter - - current time when it is called
public void oblivion(int counter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||