public class MetaDataCrossSections extends MetaDataType<CrossSection>
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 |
---|
MetaDataCrossSections(String id) |
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.
|
CrossSection |
getValue(GtuDataInterface gtu)
Retrieves the value of the meta data of this type from a GTU.
|
String |
toString() |
getId
public MetaDataCrossSections(String id)
id
- idpublic final CrossSection getValue(GtuDataInterface gtu)
getValue
in class MetaDataType<CrossSection>
gtu
- gtu to retrieve the value fromnull
if not applicable.public 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–2016 Delft University of Technology. All rights reserved.