examples.dlife.models.simpleworld
Class AverageLifetime
java.lang.Object
examples.dlife.models.simpleworld.AverageLifetime
public class AverageLifetime
- extends Object
Average the lifetime of the RandomController when run in a
number of different randomly generated SimpleWorlds.
To run this example double click the dLifeDist/UserScripts/RunExample file (Mac/Linux)
or the dLifeDist/UserScripts/RunExample.bat file (Windows) and enter the
example name:
examples.dlife.models.simpleworld.AverageLifetime
The source code for this class is contained in the file:
- Version:
- Oct 4, 2010
- Author:
- Grant Braught, Dickinson College
|
Method Summary |
static void |
main(String[] args)
Run a number of trials with the RandomController to
determine its average lifespan. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TRIALS
public static final int TRIALS
- See Also:
- Constant Field Values
INIT_LIFE_FORCE
public static final int INIT_LIFE_FORCE
- See Also:
- Constant Field Values
AverageLifetime
public AverageLifetime()
main
public static void main(String[] args)
- Run a number of trials with the
RandomController to
determine its average lifespan.
- Parameters:
args - none