Class DataStream<T extends Number>

java.lang.Object
org.opentrafficsim.draw.egtf.DataStream<T>
Type Parameters:
T - data type of the stream

public final class DataStream<T extends Number> extends Object
Data stream for the EGTF. These are obtained by DataSource.addStream() and DataSource.getStream().

Copyright (c) 2013-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
  • Constructor Details

    • DataStream

      DataStream(DataSource dataSource, Quantity<T,?> quantity, double thetaCong, double thetaFree)
      Constructor.
      Parameters:
      dataSource - DataSource; data source
      quantity - Quantity<T, ?>; quantity
      thetaCong - double; standard deviation in congestion
      thetaFree - double; standard deviation in free flow
  • Method Details

    • getDataSource

      DataSource getDataSource()
      Returns the data source.
      Returns:
      DataSource; the data source
    • getQuantity

      Quantity<T,?> getQuantity()
      Returns the quantity.
      Returns:
      Quantity; the quantity
    • getThetaCong

      double getThetaCong()
      Returns the standard deviation in congestion.
      Returns:
      double; the standard deviation in congestion
    • getThetaFree

      double getThetaFree()
      Returns the standard deviation in free flow.
      Returns:
      double; the standard deviation in free flow
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object