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

java.lang.Objectcz.cuni.amis.pogamut.episodic.episodes.ObjectSlot
public class ObjectSlot
As episode tree can be imagined as experienced instance of the decision
tree, ObjectSlot can is an experienced equivalent of
AffordanceSlot. Of course several ObjectSlots can
be associated with one AffordanceSlot. ObjectSlots
can be attached to any action or intention episode node (same as affordance
slots can be attached to decision nodes). It represent the object being used
while performing specified action. In order for action to be completed
successfully all slots have to be filled by particular items first. However
if no such object was found, the slot still exists in memory, it just isn't
linked with any object. Slots are the only was how to remember that
an object was used to perform an action.
| Constructor Summary | |
|---|---|
ObjectSlot(int _id,
String _type,
EpisodeNode parent)
Instantiate the slot class by providing unique ID that will be used for visualizing purposes, type of objects that are needed to fill this slot and reference to the node, this slot is attached to. |
|
| Method Summary | |
|---|---|
boolean |
addObject(ObjectNode obj,
boolean increaseCounter)
Links an this slot with given ObjectNode representing
and object. |
Collection<Double> |
computeScore()
Method used to compute the new score of a slot. |
boolean |
deleteSlot()
Deletes the slot. |
void |
emptySlot()
This method can be to unlink all ObjectNodes that were
previously linked with this slot. |
void |
forgetConnections(double kScore)
|
int |
getId()
Getter method for the id variable. |
EpisodeNode |
getParentNode()
Getter method for the parentNode variable. |
Collection<Double> |
getScore()
Getter method for the objects.values() (scores) variable. |
double |
getScore(ObjectNode o)
Returns score of connection with particular object. |
String |
getType()
Getter method for the type variable. |
Collection<ObjectNode> |
getUsedObjects()
A getter method for the objects variable. |
void |
remove(ObjectNode o)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectSlot(int _id,
String _type,
EpisodeNode parent)
_id - Unique ID of this node._type - Type of the slot. No two slots of the same type can be
attached to the one episodic node.parent - Reference to the node, this slot is attached to.| Method Detail |
|---|
public int getId()
id variable.
public String getType()
type variable.
public EpisodeNode getParentNode()
parentNode variable.
EpisodeNode this slot
is attached to.public void emptySlot()
ObjectNodes that were
previously linked with this slot. After calling this method it is
ensured that the slot will not be connected with any object node.
It will not be possible to recover information 'what object was used
to perform the parent episodic node' from memory.
Can be used to simulate the forgetting process.
public void remove(ObjectNode o)
public boolean addObject(ObjectNode obj,
boolean increaseCounter)
ObjectNode representing
and object. In agent's memory this object will be remembered as
item that was used to perform the episodic node this slot is attached to.
obj - Reference to an ObjectNode that is to be linked
with this slot.
public Collection<ObjectNode> getUsedObjects()
objects variable.
ObjectNodes representing objects
that satisfy this affordance. Usually there will be just one object,
but it is possible to have several objects of the same type in one slot.
According to agent's memories these objects were used to perform
the episodic node this slot is attached to.public Collection<Double> getScore()
objects.values() (scores) variable.
public Collection<Double> computeScore()
public boolean deleteSlot()
public void forgetConnections(double kScore)
public double getScore(ObjectNode o)
o - ObjectNode we are querying for.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||