Class OTSDemoServer

  • All Implemented Interfaces:
    Checkable

    public class OTSDemoServer
    extends Object
    implements Checkable
    OTSDemoServer.java.

    Copyright (c) 2003-2022 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl. The source code and binary code of this software is proprietary information of Delft University of Technology.
    Author:
    Alexander Verbraeck
    • Field Detail

      • sessionModelMap

        final Map<String,​org.opentrafficsim.core.dsol.OTSModelInterface> sessionModelMap
        the map of sessionIds to OTSModelInterface that handles the animation and updates for the started model.
      • sessionWebModelMap

        final Map<String,​OTSWebModel> sessionWebModelMap
        the map of sessionIds to OTSWebModel that handles the animation and updates for the started model.
      • sessionKillMap

        final Map<String,​Long> sessionKillMap
        the map of sessionIds to the time in msec when the model has to be killed.
      • maxProcesses

        int maxProcesses
        how many processes max?
      • killDuration

        Duration killDuration
        how much time max before being killed?
      • rootDirectory

        String rootDirectory
        root directory for the web server.
      • homePage

        String homePage
        home page for the web server.
      • port

        int port
        internet port for the web server.
    • Constructor Detail

      • OTSDemoServer

        public OTSDemoServer()
        Constructor to set any variables to default values if needed.
    • Method Detail

      • main

        public static void main​(String[] args)
                         throws Exception
        Run a SuperDemo OTS Web server.
        Parameters:
        args - String[]; param=value style parameters. Used: maxProcesses=20 maxTimeMinutes=30
        Throws:
        Exception - on Jetty error