com.rubecula.darwin.domain.environment
Class EnvironmentChangeEvent

java.lang.Object
  extended by com.rubecula.darwin.domain.environment.EnvironmentChangeEvent
All Implemented Interfaces:
java.lang.Runnable

public class EnvironmentChangeEvent
extends java.lang.Object
implements java.lang.Runnable

This class defines a Runnable event which changes the value of an eco factor in an environment. It is normally scheduled by virtue of the Evolution.scheduleEvent(long, Runnable) method. TODO consider extending AToString

Author:
Robin Hillyard

Field Summary
protected static org.apache.commons.logging.Log LOG
           
 
Constructor Summary
EnvironmentChangeEvent(Environment environment, java.lang.String factorKey, java.lang.Object factorValue)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final org.apache.commons.logging.Log LOG
Constructor Detail

EnvironmentChangeEvent

public EnvironmentChangeEvent(Environment environment,
                              java.lang.String factorKey,
                              java.lang.Object factorValue)
Parameters:
environment - the environment we will be changing
factorKey - the factor key to identify which factor will change
factorValue - the new value for the factor
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
See Also:
Runnable.run()


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