Package com.rubecula.darwin.examples.pepperedmoth

Peppered Moth Example

See:
          Description

Interface Summary
TraitFactorFitness This application-specific interface defines how fitness is calculated for a trait value acting with the evironment factor factorVal.
 

Class Summary
Allele_PepperedMoth This class defines two alternative instances of Allele via class methods: Allele_PepperedMoth.alleleMelanism() and Allele_PepperedMoth.alleleNoMelanism().
Applet_PepperedMoth The class which implements the PepperedMoth example applet.
ApplicationDefinitions This class defines an evolutionary process for a Darwinian System, namely the evolution of the peppered moth.
Census_WingColor Implementation of Census specifically for the PepperedMoth example and which concentrates on showing the mean wing color (and numbers of organisms with each trait).
ConsoleApplication Basic main program for running the PepperedMoth example.
ControlPanel_PepperedMoth A control panel (the lower part of the applet) useful for the peppered moth example.
Environment_PepperedMoth This class provides an implementation of the Environment interface for the peppered moth example.
Expression_PepperedMoth Implementation of Expression specifically for the Peppered Moth example.
ExpressionEvaluator_Fitness Class which knows how to evaluate the wing-color/soot-density fitness
ExpressionEvaluator_MateChoiceDesirability Class which knows how to evaluate the desirability of a male mate.
ExpressionEvaluator_MateChoiceDesirabilityMinimum Class which knows how to evaluate the desirability of a male mate.
Factory_PepperedMoth A specific implementation of Factory for the peppered moth.
Fitness_PepperedMoth Implementation of Fitness specifically for the peppered moth example.
Individual_PepperedMoth Class to customize the Individual implementer for the PepperedMoth application.
Locus_PepperedMoth This application-specific class represents a Locus at which one of several Alleles may appear.
MateChoice_PepperedMoth Default implementation of MateChoice.
Mutator_PepperedMoth This mutator is responsible for keeping the carbonaria allele in the population (or, conceivably, the typica allele) Every now and then, the copying of the gene goes wrong and the other allele is used instead.
OptionsPanel_PepperedMoth Implementation of OptionsPanel_Abstract for the Peppered Moth.
Painter_PepperedMoth Implementation of Painter for the PepperedMoth example.
PepperedMothEvolution The main class of the peppered moth solution.
PopulationListener_PepperedMoth Implementer of PopulationListener which updates a visualization model, and which is specific to the peppered moth application in that it chooses to ignore the control population for display purposes.
Trait_WingColor Specific implementation of Trait for the peppered moth.
VisualizationFactory_PepperedMoth Class responsible for creating visualization objects for the PepperedMoth application.
VisualizationModel_PepperedMoth Visualization Model for the Peppered Moth example.
 

Package com.rubecula.darwin.examples.pepperedmoth Description

Peppered Moth Example

Contents:


Copyright Notice

Darwin Framework Project.
Copyright (C) 2003, 2007 Rubecula Software.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

CVS Version: $Revision: 1.3 $

Back to Top


Peppered Moth Example

The Peppered Moth Example is a biological example and utilizes a sex-based evolutionary mechanism. The genome of the peppered moth is diploid in all organisms. The peppered moth illustrates a very fast adaptation to differing environmental conditions, and was noted and observed during before, during and after the early part of the industrial revolution in Britain. For more information see Wikipedia.
You can run the peppered moth example simply as an applet. Simply click "Start" and watch the moths breed and multiply (each moth is represented by a light or dark grey circle). Now change the sootiness of the environment to a higher value. Watch the ratio of dark moths increase. It may take several generations to react. The options panel (click the left-most tab) allows you to change various settings. You will only be able to change the formulas if you have the JEP (or equivalent) package available in your classpath. See ../expressions/package.html for more details.


Last Updated: 2007-02-26