public final class AltererResult<G extends Gene<?,G>,C extends Comparable<? super C>> extends Object implements Serializable
Alterer.alter(Seq, long)
call, which
consists of the altered population and the number of altered individuals.Alterer
,
Serialized FormModifier and Type | Method and Description |
---|---|
int |
alterations()
Return the number of altered individuals.
|
boolean |
equals(Object obj) |
int |
getAlterations()
Deprecated.
Use
alterations() instead |
ISeq<Phenotype<G,C>> |
getPopulation()
Deprecated.
Use
population() instead |
int |
hashCode() |
static <G extends Gene<?,G>,C extends Comparable<? super C>> |
of(ISeq<Phenotype<G,C>> population)
Return a new alter result for the given arguments.
|
static <G extends Gene<?,G>,C extends Comparable<? super C>> |
of(ISeq<Phenotype<G,C>> population,
int alterations)
Return a new alter result for the given arguments.
|
ISeq<Phenotype<G,C>> |
population()
Return the altered population.
|
String |
toString() |
public ISeq<Phenotype<G,C>> population()
@Deprecated public ISeq<Phenotype<G,C>> getPopulation()
population()
insteadpublic int alterations()
@Deprecated public int getAlterations()
alterations()
insteadpublic static <G extends Gene<?,G>,C extends Comparable<? super C>> AltererResult<G,C> of(ISeq<Phenotype<G,C>> population, int alterations)
G
- the gene typeC
- the result typepopulation
- the altered populationalterations
- the number of altered individualsNullPointerException
- if the given population is null
IllegalArgumentException
- if the given alterations
is
negativepublic static <G extends Gene<?,G>,C extends Comparable<? super C>> AltererResult<G,C> of(ISeq<Phenotype<G,C>> population)
G
- the gene typeC
- the result typepopulation
- the altered populationNullPointerException
- if the given population is null
© 2007-2020 Franz Wilhelmstötter (2020-02-18 20:01)