Interface PlotScheduler


public interface PlotScheduler
Interface between plots (subclasses of AbstractPlot) and some source that knows about time in the context, e.g. a simulator, or a data loader which knows all time has past. For offline purposes, PlotScheduler.OFFLINE can be used.

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 Details

    • OFFLINE

      static final PlotScheduler OFFLINE
      Default offline scheduler. This will only provide an infinite time, causing increaseTime() to be invoked on all plots once.
  • Method Details

    • getTime

      Duration getTime()
      Returns the time.
      Returns:
      time.
    • cancelEvent

      void cancelEvent(AbstractPlot abstractPlot)
      Cancel event on plot.
      Parameters:
      abstractPlot - plot.
    • scheduleUpdate

      void scheduleUpdate(Duration time, AbstractPlot abstractPlot)
      Schedule update() call on abstractPlot.
      Parameters:
      time - time.
      abstractPlot - plot.