net.sourceforge.jabm.mixing
Class SubgroupAgentMixer
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
groupSize
protected int groupSize
prng
protected cern.jet.random.engine.RandomEngine prng
numGroups
protected int numGroups
SubgroupAgentMixer
public SubgroupAgentMixer(cern.jet.random.engine.RandomEngine prng)
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)