|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--main.AmpelSimulator
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 |
public AmpelSimulator()
Method Detail |
public static void main(java.lang.String[] args)
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/).
timeStep
can be used to specify the length of
a simulation time-step (default is 1000ms = 1s).
startDelay
can be used to specify an initial delay before
the simulator starts producing cars and error events.args
- Command line arguments (as described above).
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |