Package simulation
Class Population
java.lang.Object
simulation.Population
public class Population
extends java.lang.Object
Population of all species present in current epoch.
- 
Constructor Summary
Constructors Constructor Description Population(int fastPopulationSize, int slowPopulationSize, Vector slowPopulationMemberDiameters, Vector fastPopulationMemberDiameters)Generate new population with given slow and fast population member size and their diameters. - 
Method Summary
Modifier and Type Method Description voidcheckForNewEpoch()Check if a new epoch should be started, if yes, start one.voiddrawPopulation(javafx.scene.canvas.GraphicsContext gc)Draw on the screen all alive members of the population.voidmovePopulation()Move all alive members of the population. 
- 
Constructor Details
- 
Population
public Population(int fastPopulationSize, int slowPopulationSize, Vector slowPopulationMemberDiameters, Vector fastPopulationMemberDiameters)Generate new population with given slow and fast population member size and their diameters.- Parameters:
 fastPopulationSize- number of fast species.slowPopulationSize- number of slow species.slowPopulationMemberDiameters- diameters of slow species.fastPopulationMemberDiameters- diameters of fast species.
 
 - 
 - 
Method Details
- 
checkForNewEpoch
public void checkForNewEpoch()Check if a new epoch should be started, if yes, start one. - 
movePopulation
public void movePopulation()Move all alive members of the population. - 
drawPopulation
public void drawPopulation(javafx.scene.canvas.GraphicsContext gc)Draw on the screen all alive members of the population.- Parameters:
 gc- JavaFx object of class class used to issue draw calls to a Canvas using a buffer.
 
 -