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 |
evaluationDuration()
Return the duration needed for evaluating the fitness function of the new
individuals.
|
Duration |
evolveDuration()
Return the duration needed for the whole evolve step.
|
Duration |
getEvaluationDuration()
Deprecated.
Use
evaluationDuration() instead |
Duration |
getEvolveDuration()
Deprecated.
Use
evolveDuration() instead |
Duration |
getOffspringAlterDuration()
Deprecated.
Use
offspringAlterDuration() instead |
Duration |
getOffspringFilterDuration()
Deprecated.
Use
offspringFilterDuration() instead |
Duration |
getOffspringSelectionDuration()
Deprecated.
Use
offspringSelectionDuration() instead |
Duration |
getSurvivorFilterDuration()
Deprecated.
Use
survivorFilterDuration() instead |
Duration |
getSurvivorsSelectionDuration()
Deprecated.
Use
survivorsSelectionDuration() instead |
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. |
Duration |
offspringAlterDuration()
Return the duration needed for altering the offspring population.
|
Duration |
offspringFilterDuration()
Return the duration needed for removing and replacing invalid offspring
individuals.
|
Duration |
offspringSelectionDuration()
Return the duration needed for selecting the offspring population.
|
EvolutionDurations |
plus(EvolutionDurations other)
Returns a copy of this duration with the specified duration added.
|
Duration |
survivorFilterDuration()
Return the duration needed for removing and replacing old and invalid
survivor individuals.
|
Duration |
survivorsSelectionDuration()
Return the duration needed for selecting the survivors population.
|
public static final EvolutionDurations ZERO
public Duration offspringSelectionDuration()
@Deprecated public Duration getOffspringSelectionDuration()
offspringSelectionDuration()
insteadpublic Duration survivorsSelectionDuration()
@Deprecated public Duration getSurvivorsSelectionDuration()
survivorsSelectionDuration()
insteadpublic Duration offspringAlterDuration()
@Deprecated public Duration getOffspringAlterDuration()
offspringAlterDuration()
insteadpublic Duration offspringFilterDuration()
@Deprecated public Duration getOffspringFilterDuration()
offspringFilterDuration()
insteadpublic Duration survivorFilterDuration()
@Deprecated public Duration getSurvivorFilterDuration()
survivorFilterDuration()
insteadpublic Duration evaluationDuration()
@Deprecated public Duration getEvaluationDuration()
evaluationDuration()
insteadpublic Duration evolveDuration()
@Deprecated public Duration getEvolveDuration()
evolveDuration()
insteadpublic EvolutionDurations plus(EvolutionDurations other)
This instance is immutable and unaffected by this method call.
other
- the duration to addEvolutionDurations
based on this duration with the
specified duration addedNullPointerException
- if the other
duration is null
ArithmeticException
- if numeric overflow occurspublic int compareTo(EvolutionDurations other)
evolveDuration()
property is taken into account for the comparison.compareTo
in interface Comparable<EvolutionDurations>
other
- the other durations object this object is compared withevolveDuration()
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-2020 Franz Wilhelmstötter (2020-02-18 20:01)