public class CoverageFilter extends Object
Constructor and Description |
---|
CoverageFilter()
Initializes a new instance configured to filter based on 'at least' one asset.
|
CoverageFilter(CoverageFilterType filterType,
int numberOfAssets)
Initializes a new instance with a specified filter type and number of assets.
|
Modifier and Type | Method and Description |
---|---|
TimeIntervalCollection1<Integer> |
constrainIntervals(TimeIntervalCollection1<Integer> coverageIntervals)
Constrains a set of time intervals based on the number of assets indicated by the data of the interval collection.
|
CoverageFilterType |
getFilterType()
Gets a value indicating how the number of assets are used to filter a given interval of access.
|
int |
getNumberOfAssets()
Gets the number of assets required to satisfy this constraint.
|
AccessQuery |
getQuery(AccessQuery... queries)
Constrains a set of access queries into one based on the given
FilterType (get ). |
boolean |
isIntervalValid(TimeInterval1<Integer> interval)
Checks whether the given interval satisfied the constraint.
|
public CoverageFilter()
public CoverageFilter(@Nonnull CoverageFilterType filterType, int numberOfAssets)
filterType
- The type indicating how to filter the number of assets.numberOfAssets
- The number of assets required to provide coverage.public final int getNumberOfAssets()
CoverageFilterType
of the filter.@Nonnull public final CoverageFilterType getFilterType()
public boolean isIntervalValid(@Nonnull TimeInterval1<Integer> interval)
interval
- The interval with the number of assets available in its Data
(get
) property.@Nonnull public TimeIntervalCollection1<Integer> constrainIntervals(@Nonnull TimeIntervalCollection1<Integer> coverageIntervals)
coverageIntervals
- The time intervals representing coverage.@Nonnull public final AccessQuery getQuery(@Nonnull AccessQuery... queries)
FilterType
(get
).queries
- The set of queries to constrain.