uk.ac.nott.cs.g54dia.demo
Class DemoSimulator

java.lang.Object
  extended by uk.ac.nott.cs.g54dia.demo.DemoSimulator

public class DemoSimulator
extends java.lang.Object

An example of how to simulate execution of a tanker agent in the sample (task) environment.

Creates a default Environment, a DemoTanker and a GUI window (a TankerViewer) and executes the Tanker for DURATION days in the environment.


Field Summary
private static int DELAY
          Time for which execution pauses so that GUI can update.
private static int DURATION
          Number of timesteps to execute
 
Constructor Summary
DemoSimulator()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DELAY

private static int DELAY
Time for which execution pauses so that GUI can update. Reducing this value causes the simulation to run faster.


DURATION

private static int DURATION
Number of timesteps to execute

Constructor Detail

DemoSimulator

public DemoSimulator()
Method Detail

main

public static void main(java.lang.String[] args)