fr.cnes.sirius.patrius.events.postprocessing
Class AndCriterion

java.lang.Object
  extended by 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 17586 2017-05-10 13:29:16Z bignon $
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

Constructor Summary
AndCriterion(String codeA, String codeB, String newCode, String newComment)
          Constructor
 
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
 

Constructor Detail

AndCriterion

public AndCriterion(String codeA,
                    String codeB,
                    String newCode,
                    String newComment)
Constructor

Parameters:
codeA - code of the A phenomenon
codeB - code of the B phenomenon
newCode - code of the new phenomena added to the list
newComment - comment of the new phenomena added to the list
Method Detail

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 © 2017 CNES. All Rights Reserved.