| Modifier and Type | Field and Description |
|---|---|
| private final List | representation
List representing the chromosome |
| Access | Constructor and Description |
|---|---|
| public | AbstractListChromosome(final List<T>
inner representation of the chromosome representation)Constructor, copying the input representation. |
| public | AbstractListChromosome(final T[]
inner representation of the chromosome representation)Constructor, copying the input representation. |
| public | AbstractListChromosome(final List<T>
inner representation of the chromosome representation, final boolean if copyList)true, the representation will be copied, otherwise it will be referenced.Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract void | checkValidity(List<T>
representation of the chromosome chromosomeRepresentation)Asserts that |
| public int | |
| protected List | Returns: the representation of the chromosomeReturns the (immutable) inner representation of the chromosome. |
| public abstract AbstractListChromosome | Returns: new instance extended from FixedLengthChromosome with the given arrayRepresentationthe inner array representation of the new chromosome. chromosomeRepresentation)Creates a new instance of the same class as |
| public String |
| representation | back to summary |
|---|---|
| private final List<T> representation List representing the chromosome | |
| AbstractListChromosome | back to summary |
|---|---|
| public AbstractListChromosome(final List<T> representation) throws InvalidRepresentationException Constructor, copying the input representation.
| |
| AbstractListChromosome | back to summary |
|---|---|
| public AbstractListChromosome(final T[] representation) throws InvalidRepresentationException Constructor, copying the input representation.
| |
| AbstractListChromosome | back to summary |
|---|---|
| public AbstractListChromosome(final List<T> representation, final boolean copyList) Constructor.
| |
| checkValidity | back to summary |
|---|---|
| protected abstract void checkValidity(List<T> chromosomeRepresentation) throws InvalidRepresentationException Asserts that
| |
| getLength | back to summary |
|---|---|
| public int getLength() Returns the length of the chromosome.
| |
| getRepresentation | back to summary |
|---|---|
| protected List Returns the (immutable) inner representation of the chromosome.
| |
| newFixedLengthChromosome | back to summary |
|---|---|
| public abstract AbstractListChromosome Creates a new instance of the same class as Usually, this method just calls a constructor of the class.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |