cz.cuni.amis.pogamut.episodic.decisions
Interface INode

Package class diagram package INode
All Known Implementing Classes:
Action, AtomicAction, Intention, Node

public interface INode

An interface for the Node class. See the description of Node class for more information.

Author:
Michal Cermak
See Also:
Node

Method Summary
 Collection<AffordanceSlot> getAffordances()
          Returns a list of affordance slots attached to this node.
 Collection<Node> getAllChildrenNodes()
          For Intention node type this method returns Action nodes that are direct subnodes of this node.
 SchemaEpisodeNode getAssociatedNode()
          Returns a reference to equivalent node in schemabag once the equivalent node is created there.
 INode getSubNode(String name)
          For Intention node type this method returns one specified Action node that is direct subnode of this node.
 

Method Detail

getAssociatedNode

SchemaEpisodeNode getAssociatedNode()
Returns a reference to equivalent node in schemabag once the equivalent node is created there. SchemaNodes can be used to create average episodes or count number of experienced of an episode. Returns null of the associated node does not exist yet.

See Also:
SchemaEpisodeNode

getAffordances

Collection<AffordanceSlot> getAffordances()
Returns a list of affordance slots attached to this node. In order to perform an action or satisfy a goal, all its slots have to be filled first. Once the slot is filled, its equivalent in memory of experienced episode will be linked with the object that satisfied the slot.


getSubNode

INode getSubNode(String name)
For Intention node type this method returns one specified Action node that is direct subnode of this node.

For Action node type it returns either one specified Intention node that is direct subnode of this node or specified AtomicAction node.

For AtomicAction node type this method returns null.

Parameters:
name - Name of the node to be returned.

getAllChildrenNodes

Collection<Node> getAllChildrenNodes()
For Intention node type this method returns Action nodes that are direct subnodes of this node.

For Action node type it returns either Intention nodes that are direct subnodes of this node and AtomicAction nodes.

For AtomicAction node type this method returns null.



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