decisionMakingSystem
Class ItemMemory

Package class diagram package ItemMemory
java.lang.Object
  extended by decisionMakingSystem.ItemMemory
All Implemented Interfaces:
Serializable

public class ItemMemory
extends Object
implements Serializable

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

Author:
Ondrej
See Also:
Serialized Form

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

ItemMemory

public ItemMemory(Logger log)
Method Detail

addItemToMemory

public void addItemToMemory(EItem item,
                            int time,
                            int state)
adds new item to the ItemMemory or updates its record

Parameters:
item - - new item to add
time - - when we are adding - number of steps of the logic
state - 0 - use, 1 - seen

dailyReport

public void dailyReport()
just reports the state of the ItemMemory - to give a user some idea now many things are stored etc.


getLocationOfAffordances

public 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

Parameters:
aff -
counter - - current time when it is called
Returns:
list of item records with probability higher than the biasProbability or the highest probable record

oblivion

public void oblivion(int counter)


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.