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-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.
- 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 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.
-
-
-
Method Detail
-
check
public void check() throws Exception
-
init
protected void init() throws SimRuntimeException, NamingException, Sim0MQException, SerializationException, IOException
Construct 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, SerializationException
Start 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
-
-