Chromosome#getApplicationData returns null
Brought to you by:
klausikm
I call the method #setApplicationData where I store a mapping Object for the current chromosome.
Calling #getApplicationData returns the previously set mapping Object.
I subsequently call:
configuration#setSampleChromosome(chromosome)
configuration#setPopulationSize(populationSize)
Genotype.randomInitialGenotype(configuration)
However in the evaluation method of my fitness function the call to #getApplicationData always returns null. JGAP has lost my mapping object.
Logged In: YES
user_id=722855
Originator: NO
OK, I will check that. But I have the suspicion that the setup is not correct, because a sample chromosome is (currently) not seen as a template for taking the app. data from.
Logged In: YES
user_id=722855
Originator: NO
Existing unit tests show that the app. data is taken from one generation to the other for a chromosome. This is unrelated to sample chromosomes (which are a template only, not an instance).