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

java.lang.ObjectdecisionMakingSystem.ItemRecord
public class ItemRecord
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
| 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 |
|---|
public cz.cuni.amis.pogamut.base3d.worldview.object.Location location
public ArrayList<Affordance> affordances
public ItemCathegory cathegory
public double probability
| Constructor Detail |
|---|
public ItemRecord(EItem eItem,
int time)
| Method Detail |
|---|
public String toString()
toString in class Objectpublic void seen(int counter)
counter - - number of ticks of logic when it is calledpublic void found(int counter)
counter - - number of ticks of logic when it is calledpublic void missed(int counter)
counter - - number of ticks of logic when it is calledpublic void updateProbability()
public void updateProbability(int counter)
counter -
public void updateProbability(int counter,
cz.cuni.amis.pogamut.base3d.worldview.object.Location location)
counter - public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic void dailyUpdate()
public int compareTo(Object o)
compareTo in interface Comparable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||