fr.cnes.sirius.patrius.events.postprocessing
Class ElementTypeFilter
java.lang.Object
fr.cnes.sirius.patrius.events.postprocessing.ElementTypeFilter
- All Implemented Interfaces:
- PostProcessing
public final class ElementTypeFilter
- extends Object
- implements PostProcessing
- Since:
- 1.1
- Version:
- $Id: ElementTypeFilter.java 17586 2017-05-10 13:29:16Z bignon $
- Author:
- Julie Anton
- Description :
Filter that removes or keeps only the items of specific types (code) in a given timeline.
- Concurrency :
- immutable
Constructor Summary |
ElementTypeFilter(List<String> listCode,
boolean removeAll)
Constructor that uses a list of codes to identify the elements that have to be removed/kept. |
ElementTypeFilter(String elementCode,
boolean removeAll)
Constructor that uses only one code to identify the elements that have to be removed/kept. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ElementTypeFilter
public ElementTypeFilter(String elementCode,
boolean removeAll)
- Constructor that uses only one code to identify the elements that have to be removed/kept.
- Parameters:
elementCode
- : code of the elements that have to be removed / keptremoveAll
- : true if the filter consists in removing the specified elements, false if the filter consists in
keeping only the specified elements.
ElementTypeFilter
public ElementTypeFilter(List<String> listCode,
boolean removeAll)
- Constructor that uses a list of codes to identify the elements that have to be removed/kept.
- Parameters:
listCode
- : list of codes of the elements that have to be removed / keptremoveAll
- : true if the filter consists in removing the specified elements, false if the filter consists in
keeping only the specified elements.
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.