public class ModelControlDemo
extends nl.tno.imb.mc.ModelStarter
Copyright (c) 2013-2017 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
ModelControlDemo.CircularRoadIMB
Simulate traffic on a circular, two-lane road.
|
| Constructor and Description |
|---|
ModelControlDemo(String[] args,
String providedModelName,
int providedModelId) |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Entry point.
|
void |
parameterRequest(nl.tno.imb.mc.ModelParameters parameters) |
void |
quitApplication() |
void |
startModel(nl.tno.imb.mc.ModelParameters parameters,
nl.tno.imb.TConnection tConnection) |
void |
stopModel() |
public ModelControlDemo(String[] args, String providedModelName, int providedModelId) throws org.opentrafficsim.imb.IMBException
args - the command line argumentsprovidedModelName - the model nameprovidedModelId - the model idorg.opentrafficsim.imb.IMBException - when connection with the IMB bus failspublic void startModel(nl.tno.imb.mc.ModelParameters parameters,
nl.tno.imb.TConnection tConnection)
startModel in class nl.tno.imb.mc.ModelStarterpublic void stopModel()
stopModel in class nl.tno.imb.mc.ModelStarterpublic void quitApplication()
quitApplication in class nl.tno.imb.mc.ModelStarterpublic void parameterRequest(nl.tno.imb.mc.ModelParameters parameters)
parameterRequest in class nl.tno.imb.mc.ModelStarterpublic static void main(String[] args) throws InvocationTargetException, InterruptedException
args - String[]; the command line arguments (not used)InvocationTargetException - if an exception is thrown while running doRunInterruptedException - if we're interrupted while waiting for the event dispatching thread to finish executing
doRun.run()Copyright © 2014–2017 Delft University of Technology. All rights reserved.