/** * @see * edu.virginia.cs.geneticalgorithm.fitness.FitnessFactory#createFitness(edu.virginia.cs.geneticalgorithm.gene.Genotype) */ @Override public Fitness createFitness(final Genotype individual) { final ProxyFitness preFit = _preFit.createFitness(individual); final Fitness postFit = preFit.generatesPostFitness() ? preFit.getPostFitness() : _postFit.createFitness(individual); final ShortCircuitFitness retval = new ShortCircuitFitness(preFit, _preThreshold, postFit, _postFitLen); retval.setPostScale(_postScale); return retval; }
@Override public void ready() { _preFit.ready(); if (_postFit != null) _postFit.ready(); }