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

java.lang.Objectcz.cuni.amis.pogamut.episodic.schemas.SchemaObjectNode
public class SchemaObjectNode
The class SchemaObjectNode is a mirror of ObjectNodes
from chronobag structure. There is exactly one SchemaObjectNode
created for each item that was ever used by an agent.
In schemas these nodes are linked together with slots they were used in
via the SlotContent structure. Thus it is possible to determine
how many times each item was used to perform each node.
| Constructor Summary | |
|---|---|
SchemaObjectNode(int _id,
String _name)
Instantiate the class by providing unique ID of the node and unique name of item it is representing. |
|
| Method Summary | |
|---|---|
boolean |
addSlotUsedIn(SlotContent content)
When the item represented by this node is used in an affordance slot, it is linked with the node representing that slot via the
SlotContent class. |
int |
getId()
Getter method for the id variable. |
String |
getName()
Getter method for the name variable. |
Collection<SlotContent> |
getSlotContents()
Basically a getter method for the usedIn variable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SchemaObjectNode(int _id,
String _name)
_id - Unique ID of the new node._name - Unique name of the item.| Method Detail |
|---|
public int getId()
id variable.
public String getName()
name variable.
public boolean addSlotUsedIn(SlotContent content)
SlotContent class. This method adds a new SlotContent
to the list of slot contents that link this item to all the slots
it was ever used in. If however this item was already linked with that
slot, this method does nothing.
content - SlotContent object to be added to
the list of SlotContents connecting this item node
with slot nodes.
public Collection<SlotContent> getSlotContents()
usedIn variable.
SlotContents pointing to
this SchemaObjectNode.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||