com.bnd.math.domain.evo.ArrayChromosome Maven / Gradle / Ivy
The newest version!
package com.bnd.math.domain.evo;
public class ArrayChromosome extends CompositeChromosome {
public ArrayChromosome() {
super();
}
@Override
public int getCodeSize() {
return code.length;
}
@Override
public E getCodeAt(int pos) {
if (pos >= getCodeSize()) {
return null;
}
return code[pos];
}
@Override
public void setCodeAt(int pos, E value) {
code[pos] = value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy