fr.lifl.jedi.gui.display.agentsNumber
Class AgentNumberNode

java.lang.Object
  extended by fr.lifl.jedi.gui.display.agentsNumber.AgentNumberNode

public class AgentNumberNode
extends java.lang.Object

Tree node used to display the numbers of instance of a particular agent family.

Version:
JEDI V 2.2
Created the 7th april 2009
Modified the 5th may 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
AgentNumberNode(java.lang.Class<? extends Agent> family)
          Constructor of a node that represents the number of instances of a particular agent class.
 
Method Summary
 java.lang.Class<? extends Agent> getFamily()
          Gets the agent family associated with this GUI.
 int getInstanceNumber()
          Gets the number of instances of agents from that family that lie in the simulation.
 void setInstanceNumber(int n)
          Sets the number of instances of agents from that family that lie in the simulation.
 java.lang.String toString()
          Defines what the label of the tree node displays.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AgentNumberNode

public AgentNumberNode(java.lang.Class<? extends Agent> family)
Constructor of a node that represents the number of instances of a particular agent class.

Parameters:
family - The family for which the number of instances is represented in this class.
Method Detail

getFamily

public java.lang.Class<? extends Agent> getFamily()
Gets the agent family associated with this GUI.

Returns:
The agent family associated with this GUI.

getInstanceNumber

public int getInstanceNumber()
Gets the number of instances of agents from that family that lie in the simulation.

Returns:
The number of instances of agents from that family lie in the simulation.

setInstanceNumber

public void setInstanceNumber(int n)
Sets the number of instances of agents from that family that lie in the simulation.

Parameters:
n - the new number of instances.

toString

public java.lang.String toString()
Defines what the label of the tree node displays.

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()