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

java.lang.Objectcz.cuni.amis.pogamut.episodic.decisions.AffordanceSlot
public class AffordanceSlot
AffordanceSlot is a node type that can be attached to
Action or Intention nodes of the decision tree.
AffordanceSlot is not extending the Node
base class. When a slot is attached to a node, it means that in order
to perform (satisfy) the node some object satisfying the slot type must
be located first. Any item of the same type as the slot can be used to
fill it. No two slots of the same type can be attached to one node.
These slots in the decision tree structure are only basis for creation
of actual ObjectSlots in the agent's memory that will be
linked with satisfying ObjectNodes.
Apart from material objects types, there can be slot of other types like time or place. These slots are also needed to be filled and they provide additional information about performance of the parent node. For example the slot of type time can be linked with the object node representing afternoon.
| Constructor Summary | |
|---|---|
AffordanceSlot(String _type)
Instantiate the slot by providing its type. |
|
| Method Summary | |
|---|---|
int |
getId()
Getter method for the id variable. |
String |
getType()
Getter method for the type variable. |
boolean |
setId(int newId)
This method sets the unique ID of the slot. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AffordanceSlot(String _type)
No two slots of the same type can be attached on one node.
type - Type of the new slot.| Method Detail |
|---|
public String getType()
type variable.
public boolean setId(int newId)
newId - The ID of this node.public int getId()
id variable.
Throws - exception when trying to retrive ID that was not set yet.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||