Package org.opentrafficsim.imb.kpi.demo
Class ModelControlKPI
java.lang.Object
nl.tno.imb.mc.ModelStarter
org.opentrafficsim.imb.kpi.demo.ModelControlKPI
public class ModelControlKPI
extends nl.tno.imb.mc.ModelStarter
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version Nov 11, 2016
- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ModelControlKPI(String[] args, String providedModelName, int providedModelId) -
Method Summary
Modifier and Type Method Description static voidmain(String[] args)Entry pointvoidparameterRequest(nl.tno.imb.mc.ModelParameters parameters)voidquitApplication()voidstartModel(nl.tno.imb.mc.ModelParameters parameters, nl.tno.imb.TConnection imbConnection)voidstopModel()
-
Constructor Details
-
ModelControlKPI
public ModelControlKPI(String[] args, String providedModelName, int providedModelId) throws org.opentrafficsim.imb.IMBException- Parameters:
args- String[]; model starter command line argumentsprovidedModelName- String; name of the modelprovidedModelId- int; id of the model- Throws:
org.opentrafficsim.imb.IMBException- in case of IMB error
-
-
Method Details
-
main
Entry point- Parameters:
args- String[]; args- Throws:
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()
-
startModel
public void startModel(nl.tno.imb.mc.ModelParameters parameters, nl.tno.imb.TConnection imbConnection)- Specified by:
startModelin classnl.tno.imb.mc.ModelStarter
-
stopModel
public void stopModel()- Specified by:
stopModelin classnl.tno.imb.mc.ModelStarter
-
quitApplication
public void quitApplication()- Specified by:
quitApplicationin classnl.tno.imb.mc.ModelStarter
-
parameterRequest
public void parameterRequest(nl.tno.imb.mc.ModelParameters parameters)- Specified by:
parameterRequestin classnl.tno.imb.mc.ModelStarter
-