public final class PhenomenonDurationFilter extends Object implements PostProcessing
PostProcessingThis class is a phenomena filter to be applied on a TimeLine object : after treatment, only the specified phenomena with a duration greater / lower (depending on the isMinDuration boolean) will remain in the list.
| Constructor and Description |
|---|
PhenomenonDurationFilter(List<String> phenCode,
double duration,
boolean isMinDuration)
Constructor
|
PhenomenonDurationFilter(String phenCode,
double duration,
boolean isMinDuration)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyTo(Timeline list)
Removes from the list the specified phenomena that are longer / shorter than the duration criterion (depending on
the isMinDuration boolean value).
|
public PhenomenonDurationFilter(String phenCode, double duration, boolean isMinDuration)
phenCode - : code of the phenomenon that has to be filteredduration - max or min duration of the phenomenaisMinDuration - true if the time duration is the minimal one : only phenomena with greater durations will remain after
treatmentpublic PhenomenonDurationFilter(List<String> phenCode, double duration, boolean isMinDuration)
phenCode - : codes of the phenomena that have to be filteredduration - max or min duration of the phenomenaisMinDuration - true if the time duration is the minimal one : only phenomena with greater durations will remain after
treatmentpublic void applyTo(Timeline list)
applyTo in interface PostProcessinglist - the TimeLine to be modifiedCopyright © 2025 CNES. All rights reserved.