Class OTSFederatedDemoServer

java.lang.Object
org.opentrafficsim.demo.web.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-2019 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.
  • Constructor Summary

    Constructors 
    Constructor Description
    OTSFederatedDemoServer()  
  • Method Summary

    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 Details

  • Method Details

    • 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