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

java.lang.Objectcz.cuni.amis.pogamut.episodic.memory.AffordanceUsed
public class AffordanceUsed
This class is used to unite all the information about usage of an item
into one object. It is used as a parameter of addNewNode
method in various classes. When a new action is executed by an agent,
the name of atomic action, trace to this node in decision tree and all
objects needed to execute the action are passed to the agent's memory.
Information about these items is passed in a list of AffordanceUsed
objects (one object for one affordance).
Each AffordanceUsed contains name of the node, that affordance
slot is attached to, the type of the slot and item and the unique name
of the item that satisfied the affordance. The name of the item does not
have to be set if there is no item satisfying the affordance yet (e.g. when
the agent is just looking for an item to fill the slot).
| Field Summary | |
|---|---|
String |
item
Name of the item satisfying this affordance. |
String |
type
Type of the affordance and class of the item that can satisfy it. |
String |
usedOn
Name of the node this affordance's slot is attached to. |
| Constructor Summary | |
|---|---|
AffordanceUsed(String _usedOn,
String _type,
String _item)
Instantiate the class by providing the name of the node the affordance is attached to, the type of affordance and the item satisfying it. |
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public String usedOn
public String type
public String item
null
if the affordance is not satisfied.
| Constructor Detail |
|---|
public AffordanceUsed(String _usedOn,
String _type,
String _item)
_usedOn - Name of the node this affordance's slot is
attached to._type - Type of the affordance and class of the item that
can satisfy it._item - Name of the item satisfying this affordance.
Can be null if the affordance is not satisfied.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||