Package org.opentrafficsim.draw.graphs
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cancelEvent
(AbstractPlot abstractPlot) Cancel event on plot.org.djunits.value.vdouble.scalar.Time
getTime()
Returns the time.void
scheduleUpdate
(org.djunits.value.vdouble.scalar.Time time, AbstractPlot abstractPlot) Scheduleupdate()
call on abstractPlot
-
Field Details
-
OFFLINE
Default offline scheduler. This will only provide an infinite time, causingincreaseTime()
to be invoked on all plots once.
-
-
Method Details
-
getTime
org.djunits.value.vdouble.scalar.Time getTime()Returns the time.- Returns:
- Time; time.
-
cancelEvent
Cancel event on plot.- Parameters:
abstractPlot
- AbstractPlot; plot.
-
scheduleUpdate
Scheduleupdate()
call on abstractPlot- Parameters:
time
- Time; time.abstractPlot
- AbstractPlot; plot.
-