org.opt4j.core
Interface Genotype

All Known Subinterfaces:
ListGenotype<E>
All Known Implementing Classes:
BooleanGenotype, BooleanMapGenotype, CompositeGenotype, DoubleGenotype, DoubleMapGenotype, IntegerGenotype, IntegerMapGenotype, PermutationGenotype, SelectGenotype, SelectMapGenotype

public interface Genotype

The Genotype represents a marker interface. A Genotype represents the genetic encoding of a solution of the optimization problem. Thus, a Genotype can be decoded to a phenotype with an appropriate Decoder.


Method Summary
<G extends Genotype>
G
newInstance()
          Constructs a new (empty) instance of this Genotype.
 int size()
          The number of atomic elements of the Genotype.
 

Method Detail

size

int size()
The number of atomic elements of the Genotype.

Returns:
number of atomic elements of the genotype

newInstance

<G extends Genotype> G newInstance()
Constructs a new (empty) instance of this Genotype.

Type Parameters:
G - the type of genotype for an implicit cast
Returns:
new instance of the genotype