source: java/ecj/cecj/fitness/FitnessAggregateMethod.java @ 44

Last change on this file since 44 was 44, checked in by mszubert, 14 years ago

cecj, framsticks and games packages imported

File size: 636 bytes
Line 
1package cecj.fitness;
2
3import java.util.List;
4
5import cecj.interaction.InteractionResult;
6
7import ec.EvolutionState;
8
9/**
10 * A method of aggregating individuals' interactions results.
11 *
12 * @author Marcin Szubert
13 *
14 */
15public interface FitnessAggregateMethod {
16
17        public void prepareToAggregate(EvolutionState state, int subpop);
18
19        public void addToAggregate(EvolutionState state, int subpop,
20                        List<List<InteractionResult>> subpopulationResults, int weight);
21
22        /**
23         * Assigns fitness to all individuals in the population according to their interaction outcomes.
24         */
25        public void assignFitness(EvolutionState state, int subpop);
26}
Note: See TracBrowser for help on using the repository browser.