public class SuperDemoWebApplication extends Object implements org.djutils.cli.Checkable
Copyright (c) 2002-2014 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved.
See for project information www.simulation.tudelft.nl.
The DSOL project is distributed under a BSD-style license.
| Constructor and Description |
|---|
SuperDemoWebApplication() |
| Modifier and Type | Method and Description |
|---|---|
void |
check() |
protected void |
init()
Construct a console application.
|
static void |
main(String[] args) |
protected void |
startListener()
Start listening on a port.
|
protected void |
terminate()
stop the simulation.
|
public void check()
throws Exception
check in interface org.djutils.cli.CheckableExceptionprotected void init()
throws nl.tudelft.simulation.dsol.SimRuntimeException,
NamingException,
Sim0MQException,
org.djutils.serialization.SerializationException,
IOException
nl.tudelft.simulation.dsol.SimRuntimeException - on errorNamingException - on errorSim0MQException - on errororg.djutils.serialization.SerializationException - on serialization problemIOException - when TRAFCOD file cannot be foundprotected void startListener()
throws Sim0MQException,
org.djutils.serialization.SerializationException
Sim0MQException - on errororg.djutils.serialization.SerializationException - on serialization problemprotected final void terminate()
public static void main(String[] args) throws nl.tudelft.simulation.dsol.SimRuntimeException, NamingException, Sim0MQException, org.djutils.serialization.SerializationException, IOException
args - contain e.g., port number, and a model to run: SuperDemoWebpplication --port=8080 -m TJunctionDemo.nl.tudelft.simulation.dsol.SimRuntimeException - on errorNamingException - on errorSim0MQException - on errororg.djutils.serialization.SerializationException - on serialization problemIOException - when TRAFCODDEMO file cannot be foundCopyright © 2014–2019 Delft University of Technology. All rights reserved.