Package xal.ca.correlator
Class RecordFilterFactory
java.lang.Object
xal.ca.correlator.RecordFilterFactory
Factory for common
ChannelRecordFilter
instances.- Author:
- tap
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Creates a new instance of RecordFilters -
Method Summary
Modifier and TypeMethodDescriptionstatic RecordFilter<ChannelTimeRecord>
equalityDoubleFilter
(double target) Generate a filter to Filter records checking for equality to the specified value.static RecordFilter<ChannelTimeRecord>
exclusiveMaxDoubleFilter
(double maxValue) Filter records with an upper exclusive limit on the valuestatic RecordFilter<ChannelTimeRecord>
exlusiveMinDoubleFilter
(double minValue) Filter records with a lower exclusive limit on the valuestatic RecordFilter<ChannelTimeRecord>
maxDoubleFilter
(double maxValue) Filter records with an upper inclusive limit on the valuestatic RecordFilter<ChannelTimeRecord>
maxSeverityFilter
(int maxSeverity) Filter records with an upper limit on the severitystatic RecordFilter<ChannelTimeRecord>
maxStatusFilter
(int maxStatus) Filter records with an upper limit on the statusstatic RecordFilter<ChannelTimeRecord>
minDoubleFilter
(double minValue) Filter records with a lower inclusive limit on the valuestatic RecordFilter<ChannelTimeRecord>
notFilter
(RecordFilter<ChannelTimeRecord> filter) Generate a filter to filter records by checking that the specified filter is not fulfilled.static RecordFilter<ChannelTimeRecord>
rangeDoubleFilter
(double minValue, double maxValue) Filter records with an upper limit on the value
-
Constructor Details
-
RecordFilterFactory
protected RecordFilterFactory()Creates a new instance of RecordFilters
-
-
Method Details
-
notFilter
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
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
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
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
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
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
Filter records with an upper limit on the value- Parameters:
minValue
- Description of the ParametermaxValue
- Description of the Parameter- Returns:
- Description of the Return Value
-
maxStatusFilter
Filter records with an upper limit on the status- Parameters:
maxStatus
- Description of the Parameter- Returns:
- Description of the Return Value
-
maxSeverityFilter
Filter records with an upper limit on the severity- Parameters:
maxSeverity
- Description of the Parameter- Returns:
- Description of the Return Value
-