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

    Fields inherited from class nl.tno.imb.mc.ModelStarter

    connection
  • Constructor Summary

    Constructors 
    Constructor Description
    ModelControlKPI​(String[] args, String providedModelName, int providedModelId)  
  • Method Summary

    Modifier and Type Method 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 imbConnection)
    void stopModel()

    Methods inherited from class nl.tno.imb.mc.ModelStarter

    doQuitApplication, doStartModel, doStopModel, getRemoteHost, getRemotePort, signalModelProgress, signalModelState, signalModelState

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ModelControlKPI

      public ModelControlKPI​(String[] args, String providedModelName, int providedModelId) throws org.opentrafficsim.imb.IMBException
      Parameters:
      args - String[]; model starter command line arguments
      providedModelName - String; name of the model
      providedModelId - int; id of the model
      Throws:
      org.opentrafficsim.imb.IMBException - in case of IMB error
  • Method Details

    • main

      public static void main​(String[] args) throws InvocationTargetException, InterruptedException
      Entry point
      Parameters:
      args - String[]; args
      Throws:
      InvocationTargetException - if an exception is thrown while running doRun
      InterruptedException - 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:
      startModel in class nl.tno.imb.mc.ModelStarter
    • stopModel

      public void stopModel()
      Specified by:
      stopModel in class nl.tno.imb.mc.ModelStarter
    • quitApplication

      public void quitApplication()
      Specified by:
      quitApplication in class nl.tno.imb.mc.ModelStarter
    • parameterRequest

      public void parameterRequest​(nl.tno.imb.mc.ModelParameters parameters)
      Specified by:
      parameterRequest in class nl.tno.imb.mc.ModelStarter