Package com.rubecula.darwin.examples.pepperedmoth

Peppered Moth Example

See:
          Description

Class Summary
Allele_PepperedMoth TODO quasi-obsolete.
Applet_PepperedMoth The class which implements the PepperedMoth example applet.
ApplicationDefinitions TODO eliminate this class.
ApplicationDefinitions_  
Census_WingColor Implementation of SinkCensus specifically for the PepperedMoth example and which concentrates on showing the mean wing color (and numbers of organisms with each trait).
ControlPanel_PepperedMoth A control panel (the lower part of the applet) useful for the peppered moth example.
EcoFactor_SootDensity Class which extends EcoFactor_Number and which is specific to the soot density of the peppered moth example.
Environment_PepperedMoth This class provides an implementation of the Environment interface for the peppered moth example.
EnvironmentListener_PepperedMoth  
FitnessEngine_PepperedMoth Fitness engine for the peppered moth.
MateChoice_PepperedMoth Default implementation of MateChoice.
Messages  
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.
OptionsController_PepperedMoth  
Painter_PepperedMoth TODO fix the architectural issues.
PepperedMoth This is a non-graphical, non-interactive implementation of the Peppered Moth evolution.
Registry_PepperedMoth  
SootColor This class extends Color to model a soot color.
Variant_WingColor  
Visualization_PepperedMoth Lifespan: permanent.
VisualizationFactory_PepperedMoth Lifespan: Transient TODO add property angle for peppered moth to lean (once symbol is no longer circle) Class responsible for creating visualization objects for the PepperedMoth application.
WcSdFitness Application-specific Fitness implementation.
 

Enum Summary
WingColor An enumerated type for the Peppered Moth wing color.
 

Package com.rubecula.darwin.examples.pepperedmoth Description

Peppered Moth Example

Contents:


Copyright Notice

Darwin Framework Project.
Copyright (C) 2003, 2007, 2009 Rubecula Software.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 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 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.6 $

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.

All classes in this application-specific package are, by definition, permanent.


Last Updated: 2007-02-26



Copyright © 2010 Rubecula Software, LLC. All Rights Reserved.