Class ContourPlotFlow

All Implemented Interfaces:
ActionListener, EventListener, Dataset, SeriesDataset, XYDataset, XYZDataset, org.opentrafficsim.base.Identifiable, XyInterpolatedDataset

public class ContourPlotFlow extends AbstractContourPlot<Frequency>
Contour plot for flow.

Copyright (c) 2013-2023 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Constructor Details

    • ContourPlotFlow

      public ContourPlotFlow(String caption, org.opentrafficsim.core.dsol.OtsSimulatorInterface simulator, ContourDataSource dataPool)
      Constructor.
      Parameters:
      caption - String; caption
      simulator - OtsSimulatorInterface; simulator
      dataPool - ContourDataSource; data pool
  • Method Details

    • getGraphType

      public GraphType getGraphType()
      Return the graph type for transceiver.
      Specified by:
      getGraphType in class AbstractPlot
      Returns:
      GraphType; the graph type.
    • scale

      protected double scale(double si)
      Scale the value from SI to the desired unit for users.
      Specified by:
      scale in class AbstractContourPlot<Frequency>
      Parameters:
      si - double; SI value
      Returns:
      double; scaled value
    • getValue

      protected double getValue(int item, double cellLength, double cellSpan)
      Obtain value for cell from the data pool.
      Specified by:
      getValue in class AbstractContourPlot<Frequency>
      Parameters:
      item - int; item number
      cellLength - double; cell length
      cellSpan - double; cell duration
      Returns:
      double; value for cell from the data pool
    • getContourDataType

      protected ContourDataSource.ContourDataType<Frequency,?> getContourDataType()
      Returns the contour data type for use in a ContourDataSource.
      Specified by:
      getContourDataType in class AbstractContourPlot<Frequency>
      Returns:
      CountorDataType; contour data type
    • toString

      public String toString()
      Overrides:
      toString in class Object