T
- data typeK
- grid output formatpublic class Quantity<T extends Number,K> extends Object
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 | Field and Description |
---|---|
static Quantity<Double,double[][]> |
DENSITY_SI
Standard quantity for density.
|
static Quantity<Double,double[][]> |
FLOW_SI
Standard quantity for flow.
|
static Quantity<Double,double[][]> |
SPEED_SI
Standard quantity for speed.
|
Modifier | Constructor and Description |
---|---|
protected |
Quantity(String name,
boolean speed,
Converter<K> converter)
Constructor.
|
|
Quantity(String name,
Converter<K> converter)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getName()
Returns the name.
|
int |
hashCode() |
static Quantity<?,double[][]> |
si(String name)
Returns a quantity with
double[][] containing SI values as output format. |
String |
toString() |
public Quantity(String name, Converter<K> converter)
name
- String; nameconverter
- Converter<K>; converter for output formatpublic static Quantity<?,double[][]> si(String name)
double[][]
containing SI values as output format.name
- String; namedouble[][]
containing SI values as output formatpublic final String getName()
Copyright © 2014–2019 Delft University of Technology. All rights reserved.