public final class EvolutionDurations extends Object implements Comparable<EvolutionDurations>, Serializable
| Modifier and Type | Field and Description |
|---|---|
static EvolutionDurations |
ZERO
Constant for zero evolution durations.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(EvolutionDurations other)
Compares two durations objects.
|
boolean |
equals(Object obj) |
Duration |
getEvaluationDuration()
Return the duration needed for evaluating the fitness function of the new
individuals.
|
Duration |
getEvolveDuration()
Return the duration needed for the whole evolve step.
|
Duration |
getOffspringAlterDuration()
Return the duration needed for altering the offspring population.
|
Duration |
getOffspringFilterDuration()
Return the duration needed for removing and replacing invalid offspring
individuals.
|
Duration |
getOffspringSelectionDuration()
Return the duration needed for selecting the offspring population.
|
Duration |
getSurvivorFilterDuration()
Return the duration needed for removing and replacing old and invalid
survivor individuals.
|
Duration |
getSurvivorsSelectionDuration()
Return the duration needed for selecting the survivors population.
|
int |
hashCode() |
static EvolutionDurations |
of(Duration offspringSelectionDuration,
Duration survivorsSelectionDuration,
Duration offspringAlterDuration,
Duration offspringFilterDuration,
Duration survivorFilterDuration,
Duration evaluationDuration,
Duration evolveDuration)
Return an new
EvolutionDurations object with the given values. |
public static final EvolutionDurations ZERO
public Duration getOffspringSelectionDuration()
public Duration getSurvivorsSelectionDuration()
public Duration getOffspringAlterDuration()
public Duration getOffspringFilterDuration()
public Duration getSurvivorFilterDuration()
public Duration getEvaluationDuration()
public Duration getEvolveDuration()
public int compareTo(EvolutionDurations other)
getEvolveDuration()
property is taken into account for the comparison.compareTo in interface Comparable<EvolutionDurations>other - the other durations object this object is compared withgetEvolveDuration() property of this object is
smaller/equal/greater than the corresponding property of the
other project.public static EvolutionDurations of(Duration offspringSelectionDuration, Duration survivorsSelectionDuration, Duration offspringAlterDuration, Duration offspringFilterDuration, Duration survivorFilterDuration, Duration evaluationDuration, Duration evolveDuration)
EvolutionDurations object with the given values.offspringSelectionDuration - the duration needed for selecting the
offspring populationsurvivorsSelectionDuration - the duration needed for selecting the
survivors populationoffspringAlterDuration - the duration needed for altering the
offspring populationoffspringFilterDuration - the duration needed for removing and
replacing invalid offspring individualssurvivorFilterDuration - the duration needed for removing and
replacing old and invalid survivor individualsevaluationDuration - the duration needed for evaluating the fitness
function of the new individualsevolveDuration - the duration needed for the whole evolve stepNullPointerException - if one of the arguments is
null© 2007-2017 Franz Wilhelmstötter (2017-04-28 16:50)