fr.cnes.sirius.patrius.events.postprocessing
Class AndCriterion
java.lang.Object
fr.cnes.sirius.patrius.events.postprocessing.AndCriterion
- All Implemented Interfaces:
- PostProcessing
public final class AndCriterion
- extends Object
- implements PostProcessing
- Since:
- 1.1
- Version:
- $Id: AndCriterion.java 6322 2012-09-20 15:51:39Z CardosoP $
- Author:
- Thomas Trapier
- See Also:
PostProcessing
- Description :
This criterion adds to the phenomena list of a TimeLine object the phenomena corresponding to each time
intervals when phenomena of particular types A and B occur at the same time. The events defining the
beginning and the end of those new phenomena are directly the ones of the original A and B phenomena.
- Use sample :
- PostProcessing filter = new AndCriterion("codeA", "codeB"); filter.applyTo(aTimeline);
- Concurrency :
- immutable
Method Summary |
void |
applyTo(Timeline list)
Adds to the phenomena list of a TimeLine object the phenomena corresponding to each time intervals when phenomena
of particular types A and B occur at the same time. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AndCriterion
public AndCriterion(String codeA,
String codeB,
String newCode,
String newComment)
- Constructor
- Parameters:
codeA
- code of the A phenomenoncodeB
- code of the B phenomenonnewCode
- code of the new phenomena added to the listnewComment
- comment of the new phenomena added to the list
applyTo
public void applyTo(Timeline list)
- Adds to the phenomena list of a TimeLine object the phenomena corresponding to each time intervals when phenomena
of particular types A and B occur at the same time. The events defining the beginning and the end of those new
phenomena are directly the ones of the original A and B phenomena.
- Specified by:
applyTo
in interface PostProcessing
- Parameters:
list
- the list of events and phenomenon to be modified
Copyright © 2016 CNES. All Rights Reserved.