artoflife pre0.1.0-dev

org.artoflife.gp.world
Class TimedStepWorld

java.lang.Object
  |
  +--org.artoflife.gp.World
        |
        +--org.artoflife.gp.world.TimedStepWorld
All Implemented Interfaces:
java.io.Serializable

public class TimedStepWorld
extends World

A World that runs forever until stopped or until a number of cycles have completed. This uses a java.util.Timer to step each generation after a timed period.

Author:
Steve Meyfroidt
See Also:
Serialized Form

Constructor Summary
TimedStepWorld(java.util.Collection populations)
           
 
Method Summary
 long getPeriod()
           
 void setPeriod(long period)
           
 void start()
           
 void stop()
           
 
Methods inherited from class org.artoflife.gp.World
getPopulations, stepGeneration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimedStepWorld

public TimedStepWorld(java.util.Collection populations)
Method Detail

start

public void start()
Specified by:
start in class World

stop

public void stop()
Specified by:
stop in class World

getPeriod

public long getPeriod()
Returns:
long millis delay between generation steps

setPeriod

public void setPeriod(long period)
Parameters:
period - millis delay between generation steps

artoflife pre0.1.0-dev

Copyright © 2002 the Art Of Life team. All Rights Reserved.