Class RecordFilterFactory

java.lang.Object
xal.ca.correlator.RecordFilterFactory

public class RecordFilterFactory extends Object
Factory for common ChannelRecordFilter instances.
Author:
tap
  • Constructor Details

    • RecordFilterFactory

      protected RecordFilterFactory()
      Creates a new instance of RecordFilters
  • Method Details

    • notFilter

      public static RecordFilter<ChannelTimeRecord> notFilter(RecordFilter<ChannelTimeRecord> filter)
      Generate a filter to filter records by checking that the specified filter is not fulfilled.
      Parameters:
      filter - The filter to negate
      Returns:
      a new filter which is opposite the specified filter
    • equalityDoubleFilter

      public static RecordFilter<ChannelTimeRecord> equalityDoubleFilter(double target)
      Generate a filter to Filter records checking for equality to the specified value.
      Parameters:
      target - the target value against which to check for equality
      Returns:
      a new equality filter
    • minDoubleFilter

      public static RecordFilter<ChannelTimeRecord> minDoubleFilter(double minValue)
      Filter records with a lower inclusive limit on the value
      Parameters:
      minValue - lower limit
      Returns:
      filter for records whose value is greater than or equal to the lower limit
    • exlusiveMinDoubleFilter

      public static RecordFilter<ChannelTimeRecord> exlusiveMinDoubleFilter(double minValue)
      Filter records with a lower exclusive limit on the value
      Parameters:
      minValue - lower limit
      Returns:
      filter for records whose value is strictly greater than the lower limit
    • maxDoubleFilter

      public static RecordFilter<ChannelTimeRecord> maxDoubleFilter(double maxValue)
      Filter records with an upper inclusive limit on the value
      Parameters:
      maxValue - upper limit
      Returns:
      filter for records whose value is less than or equal to the upper limit
    • exclusiveMaxDoubleFilter

      public static RecordFilter<ChannelTimeRecord> exclusiveMaxDoubleFilter(double maxValue)
      Filter records with an upper exclusive limit on the value
      Parameters:
      maxValue - upper limit
      Returns:
      filter for records whose value is strictly less than the upper limit
    • rangeDoubleFilter

      public static RecordFilter<ChannelTimeRecord> rangeDoubleFilter(double minValue, double maxValue)
      Filter records with an upper limit on the value
      Parameters:
      minValue - Description of the Parameter
      maxValue - Description of the Parameter
      Returns:
      Description of the Return Value
    • maxStatusFilter

      public static RecordFilter<ChannelTimeRecord> maxStatusFilter(int maxStatus)
      Filter records with an upper limit on the status
      Parameters:
      maxStatus - Description of the Parameter
      Returns:
      Description of the Return Value
    • maxSeverityFilter

      public static RecordFilter<ChannelTimeRecord> maxSeverityFilter(int maxSeverity)
      Filter records with an upper limit on the severity
      Parameters:
      maxSeverity - Description of the Parameter
      Returns:
      Description of the Return Value