public class NumberRandomRecruitment extends Object implements InstitutionTargetRecruitment
number from the passed set
of agents.| Modifier and Type | Field and Description |
|---|---|
protected int |
number
Number of agents that become initially aware.
|
protected Region |
region |
| Constructor and Description |
|---|
NumberRandomRecruitment() |
| Modifier and Type | Method and Description |
|---|---|
Collection<InnovationAgent> |
getRecruitedAgents(Collection<? extends Agent> allAgents)
Does not guarantee to provide the requested number of agents entirely.
|
void |
initialise(ModelData data,
RunInfo info,
Region extent) |
protected int number
protected Region region
public void initialise(ModelData data, RunInfo info, Region extent) throws Exception
initialise in interface Initialisabledata - model datainfo - run informationextent - region the initialisable object belongs toExceptionInitialisable.initialise(org.volante.abm.data.ModelData,
org.volante.abm.schedule.RunInfo, org.volante.abm.data.Region)public Collection<InnovationAgent> getRecruitedAgents(Collection<? extends Agent> allAgents)
getRecruitedAgents in interface InstitutionTargetRecruitmentInstitutionTargetRecruitment.getRecruitedAgents(java.util.Collection)