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

Last change on this file since 695 was 193, checked in by Maciej Komosinski, 11 years ago

Set svn:eol-style native for all textual files

  • Property svn:eol-style set to native
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.