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

java.lang.Object
  extended by fr.lifl.jedi.gui.display.interactionDisplayer.model.tree.PerformedInteractionsModel

public class PerformedInteractionsModel
extends java.lang.Object

This class contains all the data used to display what interactions occurred during the simulation.

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

Constructor Summary
PerformedInteractionsModel()
          Constructor of the model that contains all the data related to the interactions that occurred during simulation.
 
Method Summary
 void clean()
          Removes all the data that was stored in this model.
 OrderedComboBoxModel getFamilies()
          Gets the different agent families that are stored within this model.
 PerformedInteractionsFamilyNode getNodeForFamily(java.lang.Class<?> family)
          Gets the node that contains data for a particular agent family.
 void update(java.util.Set<Agent> agtList, int step)
          Update the model that contains all the data related to the interactions that occurred during simulation, according to the list of agents that lie in the environment at the end of the simulation step.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerformedInteractionsModel

public PerformedInteractionsModel()
Constructor of the model that contains all the data related to the interactions that occurred during simulation.

Method Detail

update

public void update(java.util.Set<Agent> agtList,
                   int step)
Update the model that contains all the data related to the interactions that occurred during simulation, according to the list of agents that lie in the environment at the end of the simulation step.

Parameters:
agtList - The set of agents that lie in the environment at the end of the time step.
step - The number of the simulation step for which update is made.

getNodeForFamily

public PerformedInteractionsFamilyNode getNodeForFamily(java.lang.Class<?> family)
Gets the node that contains data for a particular agent family.

Parameters:
family - The family for which a node is retrieved.
Returns:
The node that contains data for a particular agent family.

getFamilies

public OrderedComboBoxModel getFamilies()
Gets the different agent families that are stored within this model.

Returns:
The different agent families that are stored within this model.

clean

public void clean()
Removes all the data that was stored in this model.