net.sourceforge.jasa.agent
Class AgentGroup

java.lang.Object
  extended by net.sourceforge.jasa.agent.AgentGroup
All Implemented Interfaces:
java.io.Serializable

public class AgentGroup
extends java.lang.Object
implements java.io.Serializable

A class representing an arbitrary grouping of agents. Every agent can optionally belong to a group. This is useful for reporting purposes; for example, agents can be grouped according to what kind of strategy they use and then the net.sourceforge.jasa.report.PayoffLogger class can be used to historicalDataReport on the payoff to each kind of strategy.

See Also:
Serialized Form
 

Field Summary
protected  java.lang.String description
           
static int MAX_GROUPS
           
 
Constructor Summary
AgentGroup(java.lang.String description)
           
 
Method Summary
static AgentGroup getAgentGroup(int n)
          Get group n
 java.lang.String getDescription()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

description

protected java.lang.String description

MAX_GROUPS

public static final int MAX_GROUPS
See Also:
Constant Field Values
Constructor Detail

AgentGroup

public AgentGroup(java.lang.String description)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getDescription

public java.lang.String getDescription()

getAgentGroup

public static AgentGroup getAgentGroup(int n)
Get group n