public class MetaDataGtuType extends MetaDataType<GtuTypeDataInterface>
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.
Constructor and Description |
---|
MetaDataGtuType() |
Modifier and Type | Method and Description |
---|---|
String |
formatValue(String format,
GtuTypeDataInterface value)
Formats the value into a string.
|
GtuTypeDataInterface |
getValue(GtuDataInterface gtu)
Retrieves the value of the meta data of this type from a GTU.
|
String |
toString() |
accept, getId
public final GtuTypeDataInterface getValue(GtuDataInterface gtu)
getValue
in class MetaDataType<GtuTypeDataInterface>
gtu
- GtuDataInterface; gtu to retrieve the value fromnull
if not applicable.public String formatValue(String format, GtuTypeDataInterface value)
String.format(format, value.si);
formatValue
in class MetaDataType<GtuTypeDataInterface>
format
- String; formatvalue
- T; valuepublic String toString()
toString
in class MetaDataType<GtuTypeDataInterface>
Copyright © 2014–2019 Delft University of Technology. All rights reserved.