Class FilterDataCrossSections
- java.lang.Object
-
- org.opentrafficsim.kpi.sampling.meta.FilterDataType<CrossSection>
-
- org.opentrafficsim.kpi.sampling.meta.FilterDataCrossSections
-
- All Implemented Interfaces:
Identifiable
public class FilterDataCrossSections extends FilterDataType<CrossSection>
Accepts trajectories that have passed all cross sections as defined in a query.Copyright (c) 2013-2023 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.- Author:
- Alexander Verbraeck, Peter Knoppers, Wouter Schakel
-
-
Constructor Summary
Constructors Constructor Description FilterDataCrossSections()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(TrajectoryAcceptList trajectoryAcceptList, Set<CrossSection> querySet)Accepts all trajectory's or rejects all trajectory's depending on whether all cross sections have been crossed.CrossSectiongetValue(GtuData gtu)Retrieves the value of the meta data of this type from a GTU.StringtoString()-
Methods inherited from class org.opentrafficsim.kpi.sampling.meta.FilterDataType
getDescription, getId
-
-
-
-
Method Detail
-
getValue
public final CrossSection getValue(GtuData gtu)
Retrieves the value of the meta data of this type from a GTU.- Specified by:
getValuein classFilterDataType<CrossSection>- Parameters:
gtu- GtuData; gtu to retrieve the value from- Returns:
- value of the meta data of this type from a GTU, may be
nullif not applicable.
-
accept
public final 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.- Overrides:
acceptin classFilterDataType<CrossSection>- Parameters:
trajectoryAcceptList- TrajectoryAcceptList; containingTrajectory's andTrajectoryGroup's pertaining to a single GTU, all assumed not acceptedquerySet- Set<T>; set of values in the query for this metadata type
-
toString
public String toString()
- Overrides:
toStringin classFilterDataType<CrossSection>
-
-