Class FilterDataCrossSections

    • Constructor Detail

      • FilterDataCrossSections

        public FilterDataCrossSections()
        Constructor.
    • Method Detail

      • getValue

        public final CrossSection getValue​(GtuDataInterface gtu)
        Retrieves the value of the meta data of this type from a GTU.
        Specified by:
        getValue in class FilterDataType<CrossSection>
        Parameters:
        gtu - GtuDataInterface; gtu to retrieve the value from
        Returns:
        value of the meta data of this type from a GTU, may be null if not applicable.
      • formatValue

        public String formatValue​(String format,
                                  CrossSection value)
        Formats the value into a string. If the value is numeric, the default implementation is:
         String.format(format, value.si);
         
        Specified by:
        formatValue in class FilterDataType<CrossSection>
        Parameters:
        format - String; format
        value - T; value
        Returns:
        formatted value
      • 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:
        accept in class FilterDataType<CrossSection>
        Parameters:
        trajectoryAcceptList - TrajectoryAcceptList; containing Trajectory's and TrajectoryGroup's pertaining to a single GTU
        querySet - Set<T>; set of values in the query for this metadata type