com.rubecula.darwin.examples.pepperedmoth
Class ApplicationDefinitions
java.lang.Object
com.rubecula.darwin.examples.pepperedmoth.ApplicationDefinitions_
com.rubecula.darwin.examples.pepperedmoth.ApplicationDefinitions
public final class ApplicationDefinitions
- extends ApplicationDefinitions_
TODO eliminate this class.
This class defines an evolutionary process for a Darwinian System, namely the
evolution of the peppered moth. This example does not pretend to be the last
word (or even the first) on actual peppered moths. It is just a (toy) sample
application whose raison d'etre is documentation and exemplification.
Serious applications would be found in the Evolutions subdirectory (parallel
to the Darwin subdirectory).
The details of the simulation are as follows:
- The system is diploid;
- There is one locus and one trait, and they share the same name:
WingColor;
- A set of values serves for both the trait and the alleles: see
$Colors
.
- Dominance in the expression of alleles as traits is the extremely
arbitrary dictionary order of their names (the allele for BattleshipGrey
tends to dominate therefore).
- There is one environmental factor (other than saturation population):
soot density.
- When evaluating fitness, darker-winged moths fare better in a sootier
environment.
- The system has two populations, a control population where soot density
is the mean value and an experimental population where soot density varies
according to the run-time arguments.
- For the ordering/defaults of run-time arguments, see
PepperedMoth.main(String[])
Note that all the fields and methods of this class are static.
- Version:
- $Revision: 1.31 $
- Author:
- Robin Hillyard
Field Summary |
static java.lang.String[] |
$Colors
TODO replace this usage by reference to the WingColor enum. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
$Colors
public static final java.lang.String[] $Colors
- TODO replace this usage by reference to the WingColor enum.
An array of four colors: white, typica (light grey), carbonaria (dark
grey), black
ApplicationDefinitions
public ApplicationDefinitions()
Copyright © 2010 Rubecula Software, LLC. All Rights Reserved.