Package org.opentrafficsim.draw.egtf
Class DataStream<T extends Number>
java.lang.Object
org.opentrafficsim.draw.egtf.DataStream<T>
- Type Parameters:
T- data type of the stream
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 Summary
ConstructorsConstructorDescriptionDataStream(DataSource dataSource, Quantity<T, ?> quantity, double thetaCong, double thetaFree) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean(package private) DataSourceReturns the data source.Returns the quantity.(package private) doubleReturns the standard deviation in congestion.(package private) doubleReturns the standard deviation in free flow.inthashCode()toString()
-
Constructor Details
-
DataStream
DataStream(DataSource dataSource, Quantity<T, ?> quantity, double thetaCong, double thetaFree) Constructor.- Parameters:
dataSource- data sourcequantity- quantitythetaCong- standard deviation in congestionthetaFree- standard deviation in free flow
-
-
Method Details
-
getDataSource
DataSource getDataSource()Returns the data source.- Returns:
- the data source
-
getQuantity
Returns the quantity.- Returns:
- the quantity
-
getThetaCong
double getThetaCong()Returns the standard deviation in congestion.- Returns:
- the standard deviation in congestion
-
getThetaFree
double getThetaFree()Returns the standard deviation in free flow.- Returns:
- the standard deviation in free flow
-
hashCode
public int hashCode() -
equals
-
toString
-