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-2020 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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetName()Returns the name.inthashCode()static Quantity<?,double[][]>si(String name)Returns a quantity withdouble[][]containing SI values as output format.StringtoString()
-
-
-
Method Detail
-
si
public static Quantity<?,double[][]> si(String name)
Returns a quantity withdouble[][]containing SI values as output format.- Parameters:
name- String; name- Returns:
- quantity with
double[][]containing SI values as output format
-
getName
public final String getName()
Returns the name.- Returns:
- String; name
-
-