public class MetaDataCrossSections extends MetaDataType<CrossSection>
Copyright (c) 2013-2018 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() |
getId
public final CrossSection getValue(GtuDataInterface gtu)
getValue
in class MetaDataType<CrossSection>
gtu
- 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
- formatvalue
- valuepublic final void accept(TrajectoryAcceptList trajectoryAcceptList, Set<CrossSection> querySet)
accept
in class MetaDataType<CrossSection>
trajectoryAcceptList
- containing Trajectory
's and TrajectoryGroup
's pertaining to a single GTUquerySet
- set of values in the query for this metadata typepublic String toString()
toString
in class MetaDataType<CrossSection>
Copyright © 2014–2018 Delft University of Technology. All rights reserved.