fr.lifl.jedi.gui.display.interactionDisplayer.model.tree
Class PerformedInteractionsStepNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by fr.lifl.jedi.gui.display.interactionDisplayer.model.tree.PerformedInteractionsDisplayableNode
          extended by fr.lifl.jedi.gui.display.interactionDisplayer.model.tree.PerformedInteractionsStepNode
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public class PerformedInteractionsStepNode
extends PerformedInteractionsDisplayableNode

A node that represents the interactions performed by a particular agent instance during a particular simulation step.

Version:
JEDI V 2.3
Created the 16th June 2009
Author:
Yoann Kubera
SMAC Team (Systèmes Multi-Agents et Comportement)
LIFL (Laboratoire d'Informatique Fondamentale de Lille)
University of Lille, France
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
PerformedInteractionsStepNode(int step)
          Constructor of a node that represents the interactions performed by a particular agent instance during a particular simulation step.
 
Method Summary
 void buildTreeAccordingToOptions(OptionsModel model, int step)
          Builds the tree according to the options provided in the model.
 void putSourceParticipation(AbstractRealizableTuple<?> tuple)
          Tell that the agent performed an interaction during the simulation step.
 void putTargetParticipation(AbstractRealizableTuple<?> tuple)
          Tell that the agent undergone an interaction during the simulation step.
 void setAdded()
          Tell that the agent was added to the environment during this time step.
 void setRemoved()
          Tell that the agent was removed from the environment during this time step.
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PerformedInteractionsStepNode

public PerformedInteractionsStepNode(int step)
Constructor of a node that represents the interactions performed by a particular agent instance during a particular simulation step.

Parameters:
step - The number of the simulation step.
Method Detail

setAdded

public void setAdded()
Tell that the agent was added to the environment during this time step.


setRemoved

public void setRemoved()
Tell that the agent was removed from the environment during this time step.


putSourceParticipation

public void putSourceParticipation(AbstractRealizableTuple<?> tuple)
Tell that the agent performed an interaction during the simulation step.

Parameters:
tuple - The tuple that represents the performed interaction.

putTargetParticipation

public void putTargetParticipation(AbstractRealizableTuple<?> tuple)
Tell that the agent undergone an interaction during the simulation step.

Parameters:
tuple - The tuple that represents the undergone interaction.

buildTreeAccordingToOptions

public void buildTreeAccordingToOptions(OptionsModel model,
                                        int step)
Description copied from class: PerformedInteractionsDisplayableNode
Builds the tree according to the options provided in the model.

Specified by:
buildTreeAccordingToOptions in class PerformedInteractionsDisplayableNode
Parameters:
model - The model in which display options are stored.
step - The current time step of the simulation.
See Also:
PerformedInteractionsDisplayableNode.buildTreeAccordingToOptions(fr.lifl.jedi.gui.display.interactionDisplayer.model.OptionsModel, int)