fr.cnes.sirius.patrius.events.postprocessing
Class OccurrenceFilter
java.lang.Object
fr.cnes.sirius.patrius.events.postprocessing.OccurrenceFilter
- All Implemented Interfaces:
- PostProcessing
public final class OccurrenceFilter
- extends Object
- implements PostProcessing
- Since:
- 1.1
- Version:
- $Id: OccurrenceFilter.java 17586 2017-05-10 13:29:16Z bignon $
- Author:
- Julie Anton
- Description :
Filter that removes or keeps only the N × k occurrences of a specific element type (code) in a
given timeline.
- Concurrency :
- immutable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OccurrenceFilter
public OccurrenceFilter(String elementCode,
int k,
boolean removeAll)
- Constructor
- Parameters:
elementCode
- : code of the elements that has to be removed / keptk
- : occurrence samplingremoveAll
- : true if the filter consists in removing the specified elements, false if the filter consisits in
keeping only the specified elements.- Description :
- build an instance of OccurrenceFilter from a code
applyTo
public void applyTo(Timeline list)
- Specified by:
applyTo
in interface PostProcessing
- Parameters:
list
- : the timeline that has to be processed
Copyright © 2017 CNES. All Rights Reserved.