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

java.lang.ObjectdecisionMakingSystem.Inventory
public class Inventory
Inventory cares about items agent picked up. It stores them and responds to inventory related requests.
| Field Summary | |
|---|---|
Bot |
agent
link on the agent - to register listeners, querry built-in agent's inventory |
ArrayList<EItem> |
collectedEItems
list of collected episodic items |
ArrayList<cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ItemPickedUp> |
collectedItems
list of collected items |
static int |
inventorySize
number of items bot can hold/carry at one time |
DecisionModuleImpl |
module
decision making system module |
| Constructor Summary | |
|---|---|
Inventory(Bot agent,
DecisionModuleImpl module)
|
|
| Method Summary | |
|---|---|
EItem |
getItemOfAffordance(AffordanceType affordance)
|
boolean |
hasItemOfAffordance(AffordanceType affordance)
|
boolean |
hasItemOfClass(String pickedType)
true if there is an item of specified unreal item class |
boolean |
isReady()
|
void |
midnightUpdate()
|
void |
setReady(boolean ready)
|
void |
throwAway(EItem item)
well, can just remove him from items and bot would think that he doesn't have it with himself;) but I will throw it away to have more fun:) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public ArrayList<cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ItemPickedUp> collectedItems
public ArrayList<EItem> collectedEItems
public Bot agent
public DecisionModuleImpl module
public static final int inventorySize
| Constructor Detail |
|---|
public Inventory(Bot agent,
DecisionModuleImpl module)
| Method Detail |
|---|
public void midnightUpdate()
public boolean hasItemOfClass(String pickedType)
pickedType - - unreal item class
public boolean hasItemOfAffordance(AffordanceType affordance)
affordance -
public EItem getItemOfAffordance(AffordanceType affordance)
affordance -
public void throwAway(EItem item)
item - public boolean isReady()
public void setReady(boolean ready)
ready - the ready to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||