/** * Sets the constraint checker to be used for this gene whenever method setAllele(Object) is * called. * * @param a_constraintChecker the constraint checker to be set * @throws InvalidConfigurationException * @author Klaus Meffert * @since 2.5 */ public void setConstraintChecker(IGeneConstraintChecker a_constraintChecker) throws InvalidConfigurationException { verify(a_constraintChecker); m_geneAlleleChecker = a_constraintChecker; }
/** * Sets the genes for the chromosome. * * @param a_genes the genes to set for the chromosome * @throws InvalidConfigurationException in case constraint checker is provided * @author Klaus Meffert */ public void setGenes(Gene[] a_genes) throws InvalidConfigurationException { super.setGenes(a_genes); verify(getConstraintChecker()); }