Package org.opentrafficsim.swing.graphs
Class OtsPlotScheduler
java.lang.Object
org.opentrafficsim.swing.graphs.OtsPlotScheduler
- All Implemented Interfaces:
org.opentrafficsim.draw.graphs.PlotScheduler
public class OtsPlotScheduler
extends Object
implements org.opentrafficsim.draw.graphs.PlotScheduler
This scheduler allows plots to work live with an OTS simulation.
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 inherited from interface org.opentrafficsim.draw.graphs.PlotScheduler
OFFLINE
-
Constructor Summary
ConstructorDescriptionOtsPlotScheduler
(org.opentrafficsim.core.dsol.OtsSimulatorInterface simulator) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
cancelEvent
(org.opentrafficsim.draw.graphs.AbstractPlot abstractPlot) org.djunits.value.vdouble.scalar.Time
getTime()
void
scheduleUpdate
(org.djunits.value.vdouble.scalar.Time time, org.opentrafficsim.draw.graphs.AbstractPlot abstractPlot)
-
Constructor Details
-
OtsPlotScheduler
public OtsPlotScheduler(org.opentrafficsim.core.dsol.OtsSimulatorInterface simulator) Constructor.- Parameters:
simulator
- OtsSimulatorInterface; simulator.
-
-
Method Details
-
getTime
public org.djunits.value.vdouble.scalar.Time getTime()- Specified by:
getTime
in interfaceorg.opentrafficsim.draw.graphs.PlotScheduler
-
cancelEvent
public void cancelEvent(org.opentrafficsim.draw.graphs.AbstractPlot abstractPlot) - Specified by:
cancelEvent
in interfaceorg.opentrafficsim.draw.graphs.PlotScheduler
-
scheduleUpdate
public void scheduleUpdate(org.djunits.value.vdouble.scalar.Time time, org.opentrafficsim.draw.graphs.AbstractPlot abstractPlot) - Specified by:
scheduleUpdate
in interfaceorg.opentrafficsim.draw.graphs.PlotScheduler
-