public class Population extends Object implements EventListener, Serializable
ObjectFactory
.Modifier and Type | Field and Description |
---|---|
protected AgentList |
agentList
The list of agents comprising this population.
|
protected cern.jet.random.engine.RandomEngine |
prng |
Constructor and Description |
---|
Population() |
Population(AgentList agentList,
cern.jet.random.engine.RandomEngine prng) |
Population(Collection<Agent> agents,
cern.jet.random.engine.RandomEngine prng) |
Population(int size,
cern.jet.random.engine.RandomEngine prng,
AgentList agentList) |
Population(cern.jet.random.engine.RandomEngine prng) |
Modifier and Type | Method and Description |
---|---|
void |
add(Agent agent) |
void |
eventOccurred(SimEvent event) |
AgentList |
getAgentList() |
Collection<Agent> |
getAgents() |
cern.jet.random.engine.RandomEngine |
getPrng() |
Agent |
getRandomAgent() |
int |
getSize() |
void |
reset() |
void |
setAgentList(AgentList agentList) |
void |
setPrng(cern.jet.random.engine.RandomEngine prng) |
void |
setSize(int size) |
int |
size() |
protected AgentList agentList
protected cern.jet.random.engine.RandomEngine prng
public Population()
public Population(int size, cern.jet.random.engine.RandomEngine prng, AgentList agentList)
public Population(Collection<Agent> agents, cern.jet.random.engine.RandomEngine prng)
public Population(AgentList agentList, cern.jet.random.engine.RandomEngine prng)
public Population(cern.jet.random.engine.RandomEngine prng)
public void reset()
public int size()
public void setSize(int size)
public int getSize()
public Collection<Agent> getAgents()
public AgentList getAgentList()
public void setAgentList(AgentList agentList)
public Agent getRandomAgent()
public void add(Agent agent)
public cern.jet.random.engine.RandomEngine getPrng()
public void setPrng(cern.jet.random.engine.RandomEngine prng)
public void eventOccurred(SimEvent event)
eventOccurred
in interface EventListener
Copyright © 2014. All rights reserved.