public class MetaDataGtuType extends MetaDataType<GtuTypeDataInterface>
Copyright (c) 2013-2016 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, getIdpublic final GtuTypeDataInterface getValue(GtuDataInterface gtu)
getValue in class MetaDataType<GtuTypeDataInterface>gtu - 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 - formatvalue - valuepublic String toString()
toString in class MetaDataType<GtuTypeDataInterface>Copyright © 2014–2017 Delft University of Technology. All rights reserved.