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-2026 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 -
Method Summary
Modifier and TypeMethodDescriptiondefault voidcancelEvent(AbstractPlot<?> abstractPlot) Cancel event on plot.org.djunits.value.vdouble.scalar.DurationgetTime()Returns the time.default voidscheduleUpdate(org.djunits.value.vdouble.scalar.Duration time, AbstractPlot<?> abstractPlot) ScheduleAbstractPlot.update()call onabstractPlot.default voidscheduleUpdateNow(AbstractPlot<?> abstractPlot) ScheduleAbstractPlot.update()call onabstractPlotnow.
-
Field Details
-
OFFLINE
Default offline scheduler. This will only provide an infinite time, causingAbstractPlot.update()to be invoked on all plots once.
-
-
Method Details
-
getTime
org.djunits.value.vdouble.scalar.Duration getTime()Returns the time.- Returns:
- time
-
cancelEvent
Cancel event on plot.The default implementation does nothing, allowing non-verbose anonymous extensions.
- Parameters:
abstractPlot- plot
-
scheduleUpdate
default void scheduleUpdate(org.djunits.value.vdouble.scalar.Duration time, AbstractPlot<?> abstractPlot) ScheduleAbstractPlot.update()call onabstractPlot.The default implementation does nothing, allowing non-verbose anonymous extensions.
- Parameters:
time- time.abstractPlot- plot.
-
scheduleUpdateNow
ScheduleAbstractPlot.update()call onabstractPlotnow.The default implementation does nothing, allowing non-verbose anonymous extensions.
- Parameters:
abstractPlot- plot.
-