main
Class AmpelSimulator

java.lang.Object
  |
  +--main.AmpelSimulator

public class AmpelSimulator
extends java.lang.Object

Main class of simulation. Initializes the simulation core and provides RMI objects for communication with the traffic lights (Signalgeber) and detectors (Detektor).


Constructor Summary
AmpelSimulator()
           
 
Method Summary
static void main(java.lang.String[] args)
          Initializes simulator core, RMI objects and threads.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AmpelSimulator

public AmpelSimulator()
Method Detail

main

public static void main(java.lang.String[] args)
Initializes simulator core, RMI objects and threads. The command line arguments are (in the order in which they have to be entered):

scenarioFile registryPort classServerPort [timeStep/ms [startDelay/ms]]

scenarioFile the name of the scenario file (witthout extension).
registryPort is the port number for RMI registry that is created by this method and where clients should direct their requests to.
classServerPort is the port number where the class server that is created by this method serves its classes (e.g. http://myhost.somewhere.com:1200/).
The optional parameter timeStep can be used to specify the length of a simulation time-step (default is 1000ms = 1s).
The optionl parameter startDelay can be used to specify an initial delay before the simulator starts producing cars and error events.
Parameters:
args - Command line arguments (as described above).