physis.core
Class Population
java.lang.Object
|
+--physis.core.Population
- public class Population
- extends java.lang.Object
Population class represents the whole population running in one concrete instance of the system. When the system is distributed through the network it represents all the digital organisms living on the same node.
CRC
1. does the updates of organism - Scheduler
2. after each update it refreshes the state of the population described by state variables.
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
SEED_ORGANISM
private static final java.lang.String SEED_ORGANISM
scheduler
private Scheduler scheduler
lifespace
private LifeSpace lifespace
max_age
private int max_age
max_age_ever_reached
private int max_age_ever_reached
average_age
private double average_age
max_merit
private int max_merit
max_merit_ever_reached
private int max_merit_ever_reached
min_merit
private int min_merit
average_merit
private double average_merit
max_fitness
private double max_fitness
max_fitness_ever_reached
private double max_fitness_ever_reached
min_fitness
private double min_fitness
average_fitness
private double average_fitness
max_genome_length
private int max_genome_length
max_genome_length_ever_reached
private int max_genome_length_ever_reached
average_genome_length
private double average_genome_length
max_effective_length
private int max_effective_length
max_effective_length_ever_reached
private int max_effective_length_ever_reached
average_effective_length
private double average_effective_length
number_of_living_organisms
private int number_of_living_organisms
number_of_fertile_organisms
private int number_of_fertile_organisms
max_fitness_org
private DigitalOrganism max_fitness_org
max_merit_org
private DigitalOrganism max_merit_org
max_age_org
private DigitalOrganism max_age_org
max_glength_org
private DigitalOrganism max_glength_org
max_elength_org
private DigitalOrganism max_elength_org
Population
public Population()
update
public void update()
- Updating the whole population by executing a given average number of instructions in each CPU.
updateState
private void updateState()
- This method updates the data which represents the population state.
getAllOrganism
public DigitalOrganismIterator getAllOrganism()
getPopulationSize
public int getPopulationSize()
getNumberOfLivingOrganisms
public int getNumberOfLivingOrganisms()
- Gives the current number of living organism in the lifespace.
getNumberOfFertileOrganisms
public int getNumberOfFertileOrganisms()
- Gives the current number of fertile organism in the lifespace.
getMaxAge
public int getMaxAge()
getMaxAgeEverReached
public int getMaxAgeEverReached()
getAverageAge
public double getAverageAge()
getMaxMerit
public int getMaxMerit()
getMaxMeritEverReached
public int getMaxMeritEverReached()
getMinMerit
public int getMinMerit()
getAverageMerit
public double getAverageMerit()
getMaxFitness
public double getMaxFitness()
getMaxFitnessEverReached
public double getMaxFitnessEverReached()
getMinFitness
public double getMinFitness()
getAverageFitness
public double getAverageFitness()
getMaxGenomeLength
public int getMaxGenomeLength()
getMaxGenomeLengthEverReached
public int getMaxGenomeLengthEverReached()
getAverageGenomeLength
public double getAverageGenomeLength()
getMaxEffectiveLength
public int getMaxEffectiveLength()
getMaxEffectiveLengthEverReached
public int getMaxEffectiveLengthEverReached()
getAverageEffectiveLength
public double getAverageEffectiveLength()
getMaxFitnessOrganism
public DigitalOrganism getMaxFitnessOrganism()
getMaxMeritOrganism
public DigitalOrganism getMaxMeritOrganism()
getMaxGenomeLengthOrganism
public DigitalOrganism getMaxGenomeLengthOrganism()
getMaxEffectiveLengthOrganism
public DigitalOrganism getMaxEffectiveLengthOrganism()
getMaxAgeOrganism
public DigitalOrganism getMaxAgeOrganism()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object