public final class DataSource extends Object
EGTF.getDataSource()
.
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Modifier and Type | Method and Description |
---|---|
<T extends Number> |
addStream(Quantity<T,?> quantity,
T thetaCong,
T thetaFree)
Add a non-speed stream for the quantity to this data source.
|
<T extends Number> |
addStreamSI(Quantity<T,?> quantity,
double thetaCong,
double thetaFree)
Add a stream for the quantity to this data source.
|
boolean |
equals(Object obj) |
String |
getName()
Returns the name.
|
<T extends Number> |
getStream(Quantity<T,?> quantity)
Get a stream for the quantity of this data source.
|
int |
hashCode() |
String |
toString() |
public String getName()
public <T extends Number> DataStream<T> addStream(Quantity<T,?> quantity, T thetaCong, T thetaFree)
T
- implicit data typequantity
- Quantity<T, ?>; quantitythetaCong
- T; standard deviation of this quantity of measurements in congestion by this data sourcethetaFree
- T; standard deviation of this quantity of measurements in free flow by this data sourceIllegalArgumentException
- if the quantity is speedpublic <T extends Number> DataStream<T> addStreamSI(Quantity<T,?> quantity, double thetaCong, double thetaFree)
T
- implicit data typequantity
- Quantity<T, ?>; quantitythetaCong
- double; standard deviation of this quantity of measurements in congestion by this data source in SIthetaFree
- double; standard deviation of this quantity of measurements in free flow by this data source in SIpublic <T extends Number> DataStream<T> getStream(Quantity<T,?> quantity)
T
- implicit data typequantity
- Quantity<T, ?>; quantityCopyright © 2014–2019 Delft University of Technology. All rights reserved.