Class OTSWebServer

java.lang.Object
nl.tudelft.simulation.dsol.jetty.sse.OTSWebServer
All Implemented Interfaces:
EventListener, nl.tudelft.simulation.event.EventListenerInterface
Direct Known Subclasses:
CircularModelWeb, TJunctionDemo

public abstract class OTSWebServer
extends Object
implements nl.tudelft.simulation.event.EventListenerInterface
DSOLWebServer.java.

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
  • Constructor Details

  • Method Details

    • getTitle

      public final String getTitle()
      Returns:
      title
    • getSimulator

      public final OTSSimulatorInterface getSimulator()
      Returns:
      simulator
    • getAnimationPanel

      public final HTMLAnimationPanel getAnimationPanel()
      Returns:
      animationPanel
    • startSimulator

      protected boolean startSimulator()
      Try to start the simulator, and return whether the simulator has been started.
      Returns:
      whether the simulator has been started or not
    • stopSimulator

      protected boolean stopSimulator()
      Try to stop the simulator, and return whether the simulator has been stopped.
      Returns:
      whether the simulator has been stopped or not
    • setSpeedFactor

      protected void setSpeedFactor​(double speedFactor)
      Parameters:
      speedFactor - double; the new speed factor
    • notify

      public void notify​(nl.tudelft.simulation.event.EventInterface event) throws RemoteException
      Specified by:
      notify in interface nl.tudelft.simulation.event.EventListenerInterface
      Throws:
      RemoteException