net.sourceforge.jabm.mixing
Class RandomRobinAgentMixer
java.lang.Object
net.sourceforge.jabm.mixing.RandomRobinAgentMixer
- All Implemented Interfaces:
- java.io.Serializable, AgentMixer
public class RandomRobinAgentMixer
- extends java.lang.Object
- implements AgentMixer, java.io.Serializable
All agents arrive simultaneously at the simulation. The agents
are shuffled into a random order prior to scheduling the AgentArrivalEvent.
- See Also:
- Serialized Form
-
-
Field Summary |
static java.util.ArrayList<Agent> |
EMPTY_LIST
|
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 |
prng
protected cern.jet.random.engine.RandomEngine prng
EMPTY_LIST
public static final java.util.ArrayList<Agent> EMPTY_LIST
RandomRobinAgentMixer
public RandomRobinAgentMixer()
RandomRobinAgentMixer
public RandomRobinAgentMixer(cern.jet.random.engine.RandomEngine prng)
invokeInteractions
public void invokeInteractions(AgentList group,
SimulationController model)
invokeAgentInteractions
public void invokeAgentInteractions(Population population,
SimulationController scheduler)
- Description copied from interface:
AgentMixer
- Schedule events of type AgentArrivalEvent for each agent in the
simulation.
- Specified by:
invokeAgentInteractions
in interface AgentMixer
eventOccurred
public void eventOccurred(SimEvent event)
getPrng
public cern.jet.random.engine.RandomEngine getPrng()
setPrng
public void setPrng(cern.jet.random.engine.RandomEngine prng)