public class MetaDataCrossSections extends MetaDataType<CrossSection>
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 |
|---|
MetaDataCrossSections() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(TrajectoryAcceptList trajectoryAcceptList,
Set<CrossSection> querySet)
Accepts all trajectory's or rejects all trajectory's depending on whether all cross sections have been crossed.
|
String |
formatValue(String format,
CrossSection value)
Formats the value into a string.
|
CrossSection |
getValue(GtuDataInterface gtu)
Retrieves the value of the meta data of this type from a GTU.
|
String |
toString() |
getIdpublic final CrossSection getValue(GtuDataInterface gtu)
getValue in class MetaDataType<CrossSection>gtu - GtuDataInterface; gtu to retrieve the value fromnull if not applicable.public String formatValue(String format, CrossSection value)
String.format(format, value.si);
formatValue in class MetaDataType<CrossSection>format - String; formatvalue - T; valuepublic final void accept(TrajectoryAcceptList trajectoryAcceptList, Set<CrossSection> querySet)
accept in class MetaDataType<CrossSection>trajectoryAcceptList - TrajectoryAcceptList; containing Trajectory's and TrajectoryGroup's
pertaining to a single GTUquerySet - Set<T>; set of values in the query for this metadata typepublic String toString()
toString in class MetaDataType<CrossSection>Copyright © 2014–2019 Delft University of Technology. All rights reserved.