Class OtsPlotScheduler

java.lang.Object
org.opentrafficsim.swing.graphs.OtsPlotScheduler
All Implemented Interfaces:
org.opentrafficsim.draw.graphs.PlotScheduler

public class OtsPlotScheduler extends Object implements org.opentrafficsim.draw.graphs.PlotScheduler
This scheduler allows plots to work live with an OTS simulation.

Copyright (c) 2023-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Author:
Wouter Schakel
  • Field Summary

    Fields inherited from interface org.opentrafficsim.draw.graphs.PlotScheduler

    OFFLINE
  • Constructor Summary

    Constructors
    Constructor
    Description
    OtsPlotScheduler(org.opentrafficsim.core.dsol.OtsSimulatorInterface simulator)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cancelEvent(org.opentrafficsim.draw.graphs.AbstractPlot abstractPlot)
    org.djunits.value.vdouble.scalar.Time
    void
    scheduleUpdate(org.djunits.value.vdouble.scalar.Time time, org.opentrafficsim.draw.graphs.AbstractPlot abstractPlot)

    Methods inherited from class java.lang.Object

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

    • OtsPlotScheduler

      public OtsPlotScheduler(org.opentrafficsim.core.dsol.OtsSimulatorInterface simulator)
      Constructor.
      Parameters:
      simulator - OtsSimulatorInterface; simulator.
  • Method Details

    • getTime

      public org.djunits.value.vdouble.scalar.Time getTime()
      Specified by:
      getTime in interface org.opentrafficsim.draw.graphs.PlotScheduler
    • cancelEvent

      public void cancelEvent(org.opentrafficsim.draw.graphs.AbstractPlot abstractPlot)
      Specified by:
      cancelEvent in interface org.opentrafficsim.draw.graphs.PlotScheduler
    • scheduleUpdate

      public void scheduleUpdate(org.djunits.value.vdouble.scalar.Time time, org.opentrafficsim.draw.graphs.AbstractPlot abstractPlot)
      Specified by:
      scheduleUpdate in interface org.opentrafficsim.draw.graphs.PlotScheduler