public final class LabsPopulationGenerator extends java.lang.Object implements PopulationGenerator<EmasAgent>
Modifier and Type | Field and Description |
---|---|
private int |
agentsCount |
private double |
initialAgentEnergy |
private LabsSolutionFactory |
solutionFactory |
Constructor and Description |
---|
LabsPopulationGenerator(LabsSolutionFactory solutionFactory,
int agentsCount,
double initialAgentEnergy) |
Modifier and Type | Method and Description |
---|---|
private EmasAgent |
createAgent() |
java.util.List<EmasAgent> |
createPopulation() |
private final LabsSolutionFactory solutionFactory
private final int agentsCount
private final double initialAgentEnergy
public LabsPopulationGenerator(LabsSolutionFactory solutionFactory, int agentsCount, double initialAgentEnergy)
public java.util.List<EmasAgent> createPopulation()
createPopulation
in interface PopulationGenerator<EmasAgent>
private EmasAgent createAgent()