Package noaa.coastwatch.render.feature
Class TimeWindowRule
java.lang.Object
noaa.coastwatch.render.feature.AttributeRule<TimeWindow>
noaa.coastwatch.render.feature.TimeWindowRule
- All Implemented Interfaces:
Cloneable
,SelectionRule
A
TimeWindowRule
provides a selection mechanism for
features based on a date value of one of the attributes and a window
of time around that date.- Since:
- 3.3.2
- Author:
- Peter Hollemans
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The operators for this class of rule. -
Field Summary
Fields inherited from class noaa.coastwatch.render.feature.AttributeRule
matchAttName, matchAttValue, nameMap, operator
-
Constructor Summary
ConstructorDescriptionTimeWindowRule
(String attName, Map<String, Integer> nameMap, TimeWindow windowValue) Creates a new time window rule. -
Method Summary
Methods inherited from class noaa.coastwatch.render.feature.AttributeRule
clone, getAttribute, getOperator, getValue, setAttribute, setOperator, setValue, toString
-
Constructor Details
-
TimeWindowRule
Creates a new time window rule.- Parameters:
attName
- the attribute name to use for matching.nameMap
- the name to index mapping.windowValue
- the time window value to use for matching.
-
-
Method Details
-
operators
Description copied from class:AttributeRule
Gets an array of operators that are valid for this rule.- Specified by:
operators
in classAttributeRule<TimeWindow>
- Returns:
- the array of valid operators.
-
matches
Description copied from interface:SelectionRule
Determines if a feature matches the rule.- Parameters:
feature
- the feature to check.- Returns:
- true if the feature matches this rule or false if not.
-
main
Tests this class.- Parameters:
argv
- the array of command line parameters.- Throws:
Exception
-