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

java.lang.Objectcz.cuni.amis.pogamut.episodic.schemas.SchemaSlot
public class SchemaSlot
The class SchemaSlot is a mirror of AffordanceSlots
from decision tree and ObjectSlots from episode tree in
the schemas. SchemaObjectNodes can be linked with
SchemaSlots via the SlotContent objects.
Each slot is linked with all the items that were ever used to fill it and
satisfy the given affordance.
| Constructor Summary | |
|---|---|
SchemaSlot(int _id,
String _type)
Instantiate the slot by providing its unique ID type. |
|
| Method Summary | |
|---|---|
boolean |
addSlotContent(int id,
SchemaObjectNode o)
When the slot represented by this node is filled with an object node, it is linked with the node representing that item via the
SlotContent class. |
int |
getId()
Getter method for the id variable. |
SlotContent |
getSlotContent(String s)
Method to retrieve to SlotContent object connecting
the slot with specified item. |
Collection<SlotContent> |
getSlotContents()
Basically a getter method for the filledBy variable. |
String |
getType()
Getter method for the type variable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SchemaSlot(int _id,
String _type)
No two slots of the same type can be attached on one node.
_id - Unique ID of the slot._type - Type of the new slot.| Method Detail |
|---|
public int getId()
id variable.
public String getType()
type variable.
public boolean addSlotContent(int id,
SchemaObjectNode o)
SlotContent class. This method adds a new SlotContent
to the list of slot contents that link this slot to all the items
it was ever filled with. If however this slot was already linked with
that item, this method does nothing.
- content - SlotContent object to be added to
the list of SlotContents connecting this slot node
with object nodes.
public SlotContent getSlotContent(String s)
SlotContent object connecting
the slot with specified item.
s - Name of the object node the slot content is connecting
this slot with.
SlotContent connecting
the slot with the specified item. If no such slot exists in the schema
returns null.public Collection<SlotContent> getSlotContents()
filledBy variable.
SlotContent objects
that are pointing to this slot.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||