Class TypedQuantity<U extends Unit<U>,T extends AbstractScalar<U,T>,K extends DoubleMatrixInterface<U,?,?,?>>
- java.lang.Object
-
- org.opentrafficsim.core.egtf.Quantity<T,K>
-
- org.opentrafficsim.core.egtf.typed.TypedQuantity<U,T,K>
-
- Type Parameters:
U
- unit of dataT
- data typeK
- grid output format
public class TypedQuantity<U extends Unit<U>,T extends AbstractScalar<U,T>,K extends DoubleMatrixInterface<U,?,?,?>> extends Quantity<T,K>
Quantities for a strongly-typed context.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:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Field Summary
Fields Modifier and Type Field Description static Quantity<LinearDensity,LinearDensityMatrix>
DENSITY
Standard quantity for density.static Quantity<Frequency,FrequencyMatrix>
FLOW
Standard quantity for flow.static Quantity<Speed,SpeedMatrix>
SPEED
Standard quantity for speed.-
Fields inherited from class org.opentrafficsim.core.egtf.Quantity
DENSITY_SI, FLOW_SI, SPEED_SI
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TypedQuantity(String name, boolean speed, Converter<K> converter)
Constructor.TypedQuantity(String name, Converter<K> converter)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
-
-
-
Field Detail
-
SPEED
public static final Quantity<Speed,SpeedMatrix> SPEED
Standard quantity for speed.
-
FLOW
public static final Quantity<Frequency,FrequencyMatrix> FLOW
Standard quantity for flow.
-
DENSITY
public static final Quantity<LinearDensity,LinearDensityMatrix> DENSITY
Standard quantity for density.
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toString
in classQuantity<T extends AbstractScalar<U,T>,K extends DoubleMatrixInterface<U,?,?,?>>
-
-