Class OTSFederatedDemoServer

  • All Implemented Interfaces:
    Checkable

    public class OTSFederatedDemoServer
    extends Object
    implements Checkable
    Federated demo server for OTS models that uses Sim0MQ messaging to start and manage the executed models.

    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.
      • 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

      • OTSFederatedDemoServer

        public OTSFederatedDemoServer()
    • Method Detail

      • main

        public static void main​(String[] args)
                         throws Exception
        Run a SuperDemo OTS Web server.
        Parameters:
        args - String[]; arguments for demo server, e.g., port=8080
        Throws:
        Exception - on Jetty error