Class GatheringSubscriber
- java.lang.Object
-
- org.orekit.estimation.measurements.generation.GatheringSubscriber
-
- All Implemented Interfaces:
GeneratedMeasurementSubscriber
public class GatheringSubscriber extends Object implements GeneratedMeasurementSubscriber
Subscriber that gather all generated measurements in a sorted set.- Since:
- 12.0
- Author:
- Luc Maisonobe
-
-
Constructor Summary
Constructors Constructor Description GatheringSubscriber()
Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SortedSet<EstimatedMeasurementBase<?>>
getGeneratedMeasurements()
Get generated measurements.void
handleGeneratedMeasurement(EstimatedMeasurementBase<?> measurement)
Handle a generated measurement.void
init(AbsoluteDate start, AbsoluteDate end)
Initialize subscriber at the start of a measurements generation.
-
-
-
Method Detail
-
init
public void init(AbsoluteDate start, AbsoluteDate end)
Initialize subscriber at the start of a measurements generation.This method is called once at the start of the measurements generation. It may be used by the subscriber to initialize some internal data if needed.
- Specified by:
init
in interfaceGeneratedMeasurementSubscriber
- Parameters:
start
- start of the measurements time spanend
- end of the measurements time span
-
handleGeneratedMeasurement
public void handleGeneratedMeasurement(EstimatedMeasurementBase<?> measurement)
Handle a generated measurement.- Specified by:
handleGeneratedMeasurement
in interfaceGeneratedMeasurementSubscriber
- Parameters:
measurement
- measurements that has just been generated
-
getGeneratedMeasurements
public SortedSet<EstimatedMeasurementBase<?>> getGeneratedMeasurements()
Get generated measurements.The measurements are sorted according to
ComparableMeasurement
if generation was chronological, or reversedComparableMeasurement
if generation was non-chronological.- Returns:
- unmodifiable view of generated measurements
-
-