Class OTSFederatedDemoServer

  • All Implemented Interfaces:
    Checkable

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

    Copyright (c) 2003-2020 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
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  OTSFederatedDemoServer.XHRHandler
      Answer handles the events from the web-based user interface for a demo.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void check()
      static void main​(java.lang.String[] args)
      Run a SuperDemo OTS Web server.
      • Methods inherited from class java.lang.Object

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

      • OTSFederatedDemoServer

        public OTSFederatedDemoServer()
    • Method Detail

      • main

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

        public void check()
                   throws java.lang.Exception
        Specified by:
        check in interface Checkable
        Throws:
        java.lang.Exception