decisionMakingSystem
Class ItemRecord

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

public class ItemRecord
extends Object
implements Comparable, Serializable

Item record serves to store item memory information about an item it does not store anything but the location, affordances and cathegory of the original EItem but it adds other variables - missed, found, seen, time which indicate when was the last time the record was modified and how many times bot found, missed (not found) and saw the thing on the location

Author:
Ondrej
See Also:
Serialized Form

Field Summary
 ArrayList<Affordance> affordances
          list of affordances of the item - I am searching affordances
 ItemCathegory cathegory
          cathegory of the item - e.g.
 cz.cuni.amis.pogamut.base3d.worldview.object.Location location
          location of the item
 double probability
          probability that the item will be on the indicated place
 
Constructor Summary
ItemRecord(EItem eItem, int time)
           
 
Method Summary
 int compareTo(Object o)
           
 void dailyUpdate()
          updates seen, missed, found so it will deteriorate slowly, like the probability won't rise over limits
 boolean equals(Object obj)
           
 void found(int counter)
          increases found and updates time
 int hashCode()
           
 void missed(int counter)
          increases missed and updates time
 void seen(int counter)
          increases seen and updates time
 String toString()
           
 void updateProbability()
          counts probability based on found, missed, seen
 void updateProbability(int counter)
          counts probability based on found, missed, seen and the difference between current time and time
 void updateProbability(int counter, cz.cuni.amis.pogamut.base3d.worldview.object.Location location)
          counts probability based on found, missed, seen, the difference between current time and time and the distance between the agent and thing
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

location

public cz.cuni.amis.pogamut.base3d.worldview.object.Location location
location of the item


affordances

public ArrayList<Affordance> affordances
list of affordances of the item - I am searching affordances


cathegory

public ItemCathegory cathegory
cathegory of the item - e.g. pickable


probability

public double probability
probability that the item will be on the indicated place

Constructor Detail

ItemRecord

public ItemRecord(EItem eItem,
                  int time)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

seen

public void seen(int counter)
increases seen and updates time

Parameters:
counter - - number of ticks of logic when it is called

found

public void found(int counter)
increases found and updates time

Parameters:
counter - - number of ticks of logic when it is called

missed

public void missed(int counter)
increases missed and updates time

Parameters:
counter - - number of ticks of logic when it is called

updateProbability

public void updateProbability()
counts probability based on found, missed, seen


updateProbability

public void updateProbability(int counter)
counts probability based on found, missed, seen and the difference between current time and time

Parameters:
counter -

updateProbability

public void updateProbability(int counter,
                              cz.cuni.amis.pogamut.base3d.worldview.object.Location location)
counts probability based on found, missed, seen, the difference between current time and time and the distance between the agent and thing

Parameters:
counter -

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

dailyUpdate

public void dailyUpdate()
updates seen, missed, found so it will deteriorate slowly, like the probability won't rise over limits


compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable


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