GEIndividual extends AbstractIndividual { public void invalidate() { this.usedCodons = -1; this.usedWraps = -1; this.valid = false; this.mapped = false; this.evaluated = false; this.age = 1; } GEIndividual();  GEIndividual(GEGrammar g, Phenotype p, Genotype gen, Fitness f); private  GEIndividual(GEIndividual i); static GEIndividual getIndividual(final GEGrammar grammar, final Phenotype phen, final Genotype genotype, final Fitness fitness); void revalidate(GEIndividual ind); void invalidate(); boolean isMapped(); void setMapped(boolean mapped); boolean isValid(); void setValid(boolean b); boolean wasPreviouslyValid(); void setUsedCodons(int usedCodons); void setUsedWraps(int usedWraps); void map(int map); String getPhenotypeString(int map); Genotype getGenotype(); Mapper getMapper(); void setMapper(Mapper m); void setGenotype(Genotype g); void setPhenotype(Phenotype p); Phenotype getPhenotype(); Individual clone(); @Override String toString(); int getUsedCodons(); void setPreviouslyUsedCodons(int previouslyUsedCodons); int getPreviouslyUsedCodons(); int getUsedWraps(); int[] getCrossoverPoints(); int[] getMutationPoints(); ArrayList<Fitness> getParents(); void setCrossoverPoints(int[] crossoverPoints); void setMutationPoints(int[] mutationPoints); void setParents(ArrayList<Fitness> parents);  }
@Test public void testInvalidate() { System.out.println("* GEIndividualTest: invalidate"); GEIndividual instance = new GEIndividual(); instance.invalidate(); GEIndividualTest.testInvalidated(instance); }