com.rubecula.darwin.examples.pepperedmoth
Class Environment_PepperedMoth

java.lang.Object
  extended by net.sf.tostring0.AToString
      extended by com.rubecula.darwin.domain.environment.Environment_
          extended by com.rubecula.darwin.examples.pepperedmoth.Environment_PepperedMoth
All Implemented Interfaces:
CacheSignature, Censusible, Environment, Countable, Visualizable, java.lang.Cloneable, net.sf.tostring0.Identifiable, net.sf.tostring0.IToString

public final class Environment_PepperedMoth
extends Environment_

This class provides an implementation of the Environment interface for the peppered moth example. It expects one eco factor, of type: EcoFactor_SootDensity.

Version:
$Revision: 1.23 $
Author:
Robin Hillyard

Field Summary
static int $MaxSootDensity
          This defines the range of soot density values: 0 through 10.
 
Fields inherited from class com.rubecula.darwin.domain.environment.Environment_
idealPopulation, LOG
 
Fields inherited from interface com.rubecula.darwin.domain.helper.Environment
IDEAL_POPULATION_DEFAULT, S_ID_UNIDENTIFIED
 
Fields inherited from interface net.sf.tostring0.IToString
ANGBR_OPEN, ANGBRA_CLSE, BRA_CLSE, BRA_OPEN, BRCE_OPEN, BRCS_CLSE, COLON, LIST_SEPARATOR, MAX_ELEMENTS_DEFAULT, S_MT, S_PERCENT, SEPARATOR, SPACE
 
Constructor Summary
Environment_PepperedMoth(java.lang.String identifier, Realm realm)
           
 
Method Summary
 void init()
          Log the soot value.
 
Methods inherited from class com.rubecula.darwin.domain.environment.Environment_
addFactor, addListener, censusMe, clone, environmentChanged, equals, factorKeys, fireEnvironmentChanged, getCensusibleChildren, getCount, getEcoFactorValue, getEcoSystem, getFactor, getIdealPopulation, getIdentifier, getIndividuals, getListeners, getRealm, getSignature, getSink, hashCode, setEcoSystem, setIdealPopulation, setListeners, setSink, update
 
Methods inherited from class net.sf.tostring0.AToString
toString, toString, toStringBrief, toStringId
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

$MaxSootDensity

public static final int $MaxSootDensity
This defines the range of soot density values: 0 through 10.

See Also:
Constant Field Values
Constructor Detail

Environment_PepperedMoth

public Environment_PepperedMoth(java.lang.String identifier,
                                Realm realm)
Parameters:
identifier - the identifier for this environment.
realm - the environment factory
Method Detail

init

public void init()
Log the soot value.

See Also:
Environment.init()


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