Package org.opentrafficsim.core.egtf
Class DataStream<T extends Number>
- java.lang.Object
-
- org.opentrafficsim.core.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 byDataSource.addStream()andDataSource.getStream().Copyright (c) 2013-2022 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 24 okt. 2018
- Author:
- Wouter Schakel
-
-
Constructor Summary
Constructors Constructor Description DataStream(DataSource dataSource, Quantity<T,?> quantity, double thetaCong, double thetaFree)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)(package private) DataSourcegetDataSource()Returns the data source.(package private) Quantity<T,?>getQuantity()Returns the quantity.(package private) doublegetThetaCong()Returns the standard deviation in congestion.(package private) doublegetThetaFree()Returns the standard deviation in free flow.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
DataStream
DataStream(DataSource dataSource, Quantity<T,?> quantity, double thetaCong, double thetaFree)
Constructor.- Parameters:
dataSource- DataSource; data sourcequantity- Quantity<T, ?>; quantitythetaCong- double; standard deviation in congestionthetaFree- double; standard deviation in free flow
-
-
Method Detail
-
getDataSource
DataSource getDataSource()
Returns the data source.- Returns:
- DataSource; the data source
-
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
-
-