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 Summary

    Fields
    Modifier and Type
    Field
    Description
    static final PlotScheduler
    Default offline scheduler.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cancelEvent(AbstractPlot abstractPlot)
    Cancel event on plot.
    org.djunits.value.vdouble.scalar.Time
    Returns the time.
    void
    scheduleUpdate(org.djunits.value.vdouble.scalar.Time time, AbstractPlot abstractPlot)
    Schedule update() call on abstractPlot
  • 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

      org.djunits.value.vdouble.scalar.Time getTime()
      Returns the time.
      Returns:
      Time; time.
    • cancelEvent

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

      void scheduleUpdate(org.djunits.value.vdouble.scalar.Time time, AbstractPlot abstractPlot)
      Schedule update() call on abstractPlot
      Parameters:
      time - Time; time.
      abstractPlot - AbstractPlot; plot.