Package org.opentrafficsim.core.egtf
Class Quantity<T extends Number,K>
java.lang.Object
org.opentrafficsim.core.egtf.Quantity<T,K>
- Type Parameters:
T- data typeK- grid output format
- Direct Known Subclasses:
TypedQuantity
public class Quantity<T extends Number,K> extends Object
Defines a quantity that data sources can provide, such as speed, flow, etc.
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.
- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version 24 okt. 2018
- Author:
- Wouter Schakel
-
Field Details
-
SPEED_SI
Standard quantity for speed. -
FLOW_SI
Standard quantity for flow. -
DENSITY_SI
Standard quantity for density.
-
-
Constructor Details
-
Quantity
Constructor.- Parameters:
name- String; nameconverter- Converter<K>; converter for output format
-
Quantity
Constructor. Protected so only the default SPEED_SI quantity is speed.- Parameters:
name- String; namespeed- boolean; whether this quantity is speedconverter- Converter<K>; converter for output format
-
-
Method Details