cz.cuni.amis.pogamut.episodic.decisions
Class AffordanceSlot

Package class diagram package AffordanceSlot
java.lang.Object
  extended by cz.cuni.amis.pogamut.episodic.decisions.AffordanceSlot
All Implemented Interfaces:
Serializable

public class AffordanceSlot
extends Object
implements Serializable

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.

Author:
Michal Cermak
See Also:
Serialized Form

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

AffordanceSlot

public AffordanceSlot(String _type)
Instantiate the slot by providing its type.

No two slots of the same type can be attached on one node.

Parameters:
type - Type of the new slot.
Method Detail

getType

public String getType()
Getter method for the type variable.

Returns:
Returns the type of this slot specifying the class of items that can satisfy (fill) it. Any item of same item type can be linked with with the slot and no item that is not of this type cannot be linked with it.

setId

public boolean setId(int newId)
This method sets the unique ID of the slot. Once set it cannot be changed. It is the ID of vertex representing this node when visualizing decision tree.

Parameters:
newId - The ID of this node.

getId

public int getId()
Getter method for the id variable.

Returns:
Returns the unique ID of the slot that is used as an ID of vertex representing this node when visualizing decision tree.
Throws:
Throws - exception when trying to retrive ID that was not set yet.


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.