com.rubecula.darwin.examples.pepperedmoth
Class EnvironmentListener_PepperedMoth

java.lang.Object
  extended by com.rubecula.darwin.domain.environment.EnvironmentListener_
      extended by com.rubecula.darwin.visualization.EnvironmentListener_Visualization
          extended by com.rubecula.darwin.examples.pepperedmoth.EnvironmentListener_PepperedMoth
All Implemented Interfaces:
EnvironmentListener

public final class EnvironmentListener_PepperedMoth
extends EnvironmentListener_Visualization

Author:
Robin Hillyard

Constructor Summary
EnvironmentListener_PepperedMoth(VisualizationModel visualModel)
           
 
Method Summary
 void onEnvironmentChange(Environment env)
          TEST Method which reacts to changes in the environment and which updates the visualization model.
 
Methods inherited from class com.rubecula.darwin.visualization.EnvironmentListener_Visualization
getVisualModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnvironmentListener_PepperedMoth

public EnvironmentListener_PepperedMoth(VisualizationModel visualModel)
Parameters:
visualModel -
Method Detail

onEnvironmentChange

public void onEnvironmentChange(Environment env)
TEST Method which reacts to changes in the environment and which updates the visualization model. In this case, we update the background color of the visualization according to the sootiness in the environment.

Parameters:
env - the environment which has changed.
See Also:
(com.rubecula.darwin.domain.helper.Environment)


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