Package org.opentrafficsim.demo.web
Class SuperDemoWebApplication
- java.lang.Object
-
- org.opentrafficsim.demo.web.SuperDemoWebApplication
-
- All Implemented Interfaces:
Checkable
public class SuperDemoWebApplication extends Object implements Checkable
Copyright (c) 2002-2022 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.
- Version:
- Aug 15, 2014
- Author:
- Alexander Verbraeck
-
-
Constructor Summary
Constructors Constructor Description SuperDemoWebApplication()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheck()protected voidinit()Construct a console application.static voidmain(String[] args)protected voidstartListener()Start listening on a port.protected voidterminate()stop the simulation.
-
-
-
Method Detail
-
check
public void check() throws Exception
-
init
protected void init() throws SimRuntimeException, NamingException, Sim0MQException, SerializationException, IOExceptionConstruct a console application.- Throws:
SimRuntimeException- on errorNamingException- on errorSim0MQException- on errorSerializationException- on serialization problemIOException- when TRAFCOD file cannot be found
-
startListener
protected void startListener() throws Sim0MQException, SerializationExceptionStart listening on a port.- Throws:
Sim0MQException- on errorSerializationException- on serialization problem
-
terminate
protected final void terminate()
stop the simulation.
-
main
public static void main(String[] args) throws SimRuntimeException, NamingException, Sim0MQException, SerializationException, IOException
- Parameters:
args- contain e.g., port number, and a model to run: SuperDemoWebpplication --port=8080 -m TJunctionDemo.- Throws:
SimRuntimeException- on errorNamingException- on errorSim0MQException- on errorSerializationException- on serialization problemIOException- when TRAFCODDEMO file cannot be found
-
-