IntegerChromosome intC = (IntegerChromosome)c;
if(number == 0) {
number = intC.getValue();
}
else if(number > MAX_VALUE) {
throw new IllegalChromosomeException(chromosomes.toString()+" is too large.");
}
else {
number *= intC.getValue();
}
} else throw new IllegalChromosomeException(
"IntegerChromosome expected, '"+c.toString()+"' is not a legal substitute.");
}
return number;
}