aboutsummaryrefslogtreecommitdiffstats
path: root/src/jcgp/backend/modules/es/EvolutionaryStrategy.java
diff options
context:
space:
mode:
authorEduardo Pedroni <ep625@york.ac.uk>2014-05-06 14:29:37 +0100
committerEduardo Pedroni <ep625@york.ac.uk>2014-05-06 14:29:37 +0100
commit8189116ea4b5db4675e31dfd04a5687d55e29262 (patch)
treec1815021452a888f8838f1628d8fb4689777e73e /src/jcgp/backend/modules/es/EvolutionaryStrategy.java
parentaa9e74e7f67789f6353fc26e02ee8e68e40609a2 (diff)
Added javadocs, made minor changes to the comments
Diffstat (limited to 'src/jcgp/backend/modules/es/EvolutionaryStrategy.java')
-rw-r--r--src/jcgp/backend/modules/es/EvolutionaryStrategy.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/jcgp/backend/modules/es/EvolutionaryStrategy.java b/src/jcgp/backend/modules/es/EvolutionaryStrategy.java
index 1a14552..30a3c4a 100644
--- a/src/jcgp/backend/modules/es/EvolutionaryStrategy.java
+++ b/src/jcgp/backend/modules/es/EvolutionaryStrategy.java
@@ -33,12 +33,21 @@ import jcgp.backend.resources.Resources;
public abstract class EvolutionaryStrategy extends Module {
/**
+ * For internal use only, initialises the resources field.
+ *
+ * @param resources the experiment's resources.
+ */
+ protected EvolutionaryStrategy(Resources resources) {
+ super(resources);
+ }
+
+ /**
* Performs the selection algorithm and uses the mutator to create
* the next generation of solutions.
*
* @param population the population to evolve.
* @param mutator the mutator with which to mutate the promoted individuals.
- * @param resources parameters and utilities for optional reference.
*/
- public abstract void evolve(Population population, Mutator mutator, Resources resources);
+ public abstract void evolve(Population population, Mutator mutator);
+
}