aboutsummaryrefslogtreecommitdiffstats
path: root/src/jcgp/ea/EvolutionaryAlgorithm.java
diff options
context:
space:
mode:
authorEduardo Pedroni <ep625@york.ac.uk>2014-02-04 16:20:33 +0000
committerEduardo Pedroni <ep625@york.ac.uk>2014-02-04 16:20:33 +0000
commit1fd678821cf133c7c431daea687f3467bb0be2dd (patch)
treec23e7fe6a4076c6748d03b2cee9d41ff6e9734b2 /src/jcgp/ea/EvolutionaryAlgorithm.java
parentd9671c354080de20bba4f70438af9242c8ecd675 (diff)
Added fitness evaluation mechanism, though it might not be a very good design. Tests will be done to verify that.
Diffstat (limited to 'src/jcgp/ea/EvolutionaryAlgorithm.java')
-rw-r--r--src/jcgp/ea/EvolutionaryAlgorithm.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/jcgp/ea/EvolutionaryAlgorithm.java b/src/jcgp/ea/EvolutionaryAlgorithm.java
index 6e264aa..9e72a1b 100644
--- a/src/jcgp/ea/EvolutionaryAlgorithm.java
+++ b/src/jcgp/ea/EvolutionaryAlgorithm.java
@@ -2,14 +2,14 @@ package jcgp.ea;
import jcgp.population.Population;
-public abstract class EvolutionaryAlgorithm {
+public interface EvolutionaryAlgorithm {
- protected Mutator mutator;
+// protected Mutator mutator;
+//
+// public EvolutionaryAlgorithm(Mutator mutator) {
+// this.mutator = mutator;
+// }
- public EvolutionaryAlgorithm(Mutator mutator) {
- this.mutator = mutator;
- }
-
- public abstract void evolve(Population population);
+ public abstract void evolve(Population population, Mutator mutator);
}