Package org.opentrafficsim.swing.graphs
Class OtsPlotScheduler
java.lang.Object
org.opentrafficsim.swing.graphs.OtsPlotScheduler
- All Implemented Interfaces:
PlotScheduler
This scheduler allows plots to work live with an OTS simulation.
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 inherited from interface org.opentrafficsim.animation.graphs.PlotScheduler
OFFLINE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcancelEvent(AbstractPlot<?> abstractPlot) org.djunits.value.vdouble.scalar.DurationgetTime()voidscheduleUpdate(org.djunits.value.vdouble.scalar.Duration time, AbstractPlot<?> abstractPlot) voidscheduleUpdateNow(AbstractPlot<?> abstractPlot)
-
Constructor Details
-
OtsPlotScheduler
Constructor.- Parameters:
simulator- simulator.
-
-
Method Details
-
getTime
public org.djunits.value.vdouble.scalar.Duration getTime()- Specified by:
getTimein interfacePlotScheduler
-
cancelEvent
- Specified by:
cancelEventin interfacePlotScheduler
-
scheduleUpdate
public void scheduleUpdate(org.djunits.value.vdouble.scalar.Duration time, AbstractPlot<?> abstractPlot) - Specified by:
scheduleUpdatein interfacePlotScheduler
-
scheduleUpdateNow
- Specified by:
scheduleUpdateNowin interfacePlotScheduler
-