net.sourceforge.jabm.mixing
Class SubgroupAgentMixer

java.lang.Object
  extended by net.sourceforge.jabm.mixing.SubgroupAgentMixer
All Implemented Interfaces:
java.io.Serializable, AgentMixer

public class SubgroupAgentMixer
extends java.lang.Object
implements AgentMixer, java.io.Serializable

See Also:
Serialized Form
 

Field Summary
protected  int groupSize
           
protected  int numGroups
           
protected  cern.jet.random.engine.RandomEngine prng
           
 
Constructor Summary
SubgroupAgentMixer(cern.jet.random.engine.RandomEngine prng)
           
 
Method Summary
 java.util.Collection<AgentList> createGroups(Population population)
           
 int getGroupSize()
           
 int getNumGroups()
           
 void invokeAgentInteractions(Population population, SimulationController simulation)
          Schedule events of type AgentArrivalEvent for each agent in the simulation.
 void setGroupSize(int groupSize)
           
 void setNumGroups(int numGroups)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

groupSize

protected int groupSize

prng

protected cern.jet.random.engine.RandomEngine prng

numGroups

protected int numGroups
Constructor Detail

SubgroupAgentMixer

public SubgroupAgentMixer(cern.jet.random.engine.RandomEngine prng)
Method Detail

invokeAgentInteractions

public void invokeAgentInteractions(Population population,
                                    SimulationController simulation)
Description copied from interface: AgentMixer
Schedule events of type AgentArrivalEvent for each agent in the simulation.

Specified by:
invokeAgentInteractions in interface AgentMixer

createGroups

public java.util.Collection<AgentList> createGroups(Population population)

getGroupSize

public int getGroupSize()

setGroupSize

public void setGroupSize(int groupSize)

getNumGroups

public int getNumGroups()

setNumGroups

public void setNumGroups(int numGroups)