class SimpleGenotypeRepresentationFactory extends AbstractGenotypeRepresentationFactory {

    public void setFunction(ObjectiveFunction function) {
        this.function = function;
        this.descriptor.setNumVariables(function.getDimension());
        this.descriptor.setVariablesLowerBounds(function.getMinimum());
        // initialize empty data
        this.descriptor.setVariablesLengths(new int[function.getDimension()]);
        this.descriptor.setVariablesPrecisions(new double[function.getDimension()]);
        switch (this.encodingType){
            case FixedLength:
                processFixedLengthEncoding();
                break;
            case FixedPrecision:
                processFixedPrecisionEncoding();
                break;
        }
    }

    public  SimpleGenotypeRepresentationFactory();

}