pogamutEndEvent
Class PogamutEndAffordanceUsed

Package class diagram package PogamutEndAffordanceUsed
java.lang.Object
  extended by pogamutEndEvent.PogamutEndAffordanceUsed
All Implemented Interfaces:
Serializable

public class PogamutEndAffordanceUsed
extends Object
implements Serializable

This class is used to unite all the information about usage of an item into one object. It is used as a parameter of addNewNode method in various classes. When a new action is executed by an agent, the name of atomic action, trace to this node in decision tree and all objects needed to execute the action are passed to the agent's memory. Information about these items is passed in a list of PogamutEndAffordanceUsed objects (one object for one affordance).

Each PogamutEndAffordanceUsed contains name of the node, that affordance slot is attached to, the type of the slot and item and the unique name of the item that satisfied the affordance. The name of the item does not have to be set if there is no item satisfying the affordance yet (e.g. when the agent is just looking for an item to fill the slot).

Author:
Michal Cermak
See Also:
Serialized Form

Field Summary
 String item
          Name of the item satisfying this affordance.
 String type
          Type of the affordance and class of the item that can satisfy it.
 String usedOn
          Name of the node this affordance's slot is attached to.
 
Constructor Summary
PogamutEndAffordanceUsed(String _usedOn, String _type, String _item)
          Instantiate the class by providing the name of the node the affordance is attached to, the type of affordance and the item satisfying it.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

usedOn

public String usedOn
Name of the node this affordance's slot is attached to.


type

public String type
Type of the affordance and class of the item that can satisfy it.


item

public String item
Name of the item satisfying this affordance. Can be null if the affordance is not satisfied.

Constructor Detail

PogamutEndAffordanceUsed

public PogamutEndAffordanceUsed(String _usedOn,
                                String _type,
                                String _item)
Instantiate the class by providing the name of the node the affordance is attached to, the type of affordance and the item satisfying it.

Parameters:
_usedOn - Name of the node this affordance's slot is attached to.
_type - Type of the affordance and class of the item that can satisfy it.
_item - Name of the item satisfying this affordance. Can be null if the affordance is not satisfied.


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