examples.dlife.models.simpleworld
Class AverageLifetime

java.lang.Object
  extended by 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:

The source code for this class is contained in the file:

Version:
Oct 4, 2010
Author:
Grant Braught, Dickinson College

Field Summary
static int INIT_LIFE_FORCE
           
static int TRIALS
           
 
Constructor Summary
AverageLifetime()
           
 
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
 

Field Detail

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
Constructor Detail

AverageLifetime

public AverageLifetime()
Method Detail

main

public static void main(String[] args)
Run a number of trials with the RandomController to determine its average lifespan.

Parameters:
args - none