Class AbstractScheduler<T extends ObservedMeasurement<T>>
- java.lang.Object
-
- org.orekit.estimation.measurements.generation.AbstractScheduler<T>
-
- Type Parameters:
T
- the type of the measurement
- All Implemented Interfaces:
Scheduler<T>
- Direct Known Subclasses:
ContinuousScheduler
,EventBasedScheduler
public abstract class AbstractScheduler<T extends ObservedMeasurement<T>> extends Object implements Scheduler<T>
Base implementation ofScheduler
managingdates selection
.- Since:
- 9.3
- Author:
- Luc Maisonobe
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractScheduler(MeasurementBuilder<T> builder, DatesSelector selector)
Simple constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description SortedSet<T>
generate(Map<ObservableSatellite,OrekitStepInterpolator> interpolators)
Generate a sequence of measurements.MeasurementBuilder<T>
getBuilder()
Get the builder associated with this scheduler.DatesSelector
getSelector()
Get the dates selector.void
init(AbsoluteDate start, AbsoluteDate end)
Initialize scheduler at the start of a measurements generation.protected abstract boolean
measurementIsFeasible(AbsoluteDate date)
Check if a measurement is feasible at some date.
-
-
-
Constructor Detail
-
AbstractScheduler
protected AbstractScheduler(MeasurementBuilder<T> builder, DatesSelector selector)
Simple constructor.- Parameters:
builder
- builder for individual measurementsselector
- selector for dates
-
-
Method Detail
-
init
public void init(AbsoluteDate start, AbsoluteDate end)
Initialize scheduler 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 scheduler to initialize some internal data if needed, typically
initializing builders
.This implementation initialize the measurement builder.
- Specified by:
init
in interfaceScheduler<T extends ObservedMeasurement<T>>
- Parameters:
start
- start of the measurements time spanend
- end of the measurements time span
-
getBuilder
public MeasurementBuilder<T> getBuilder()
Get the builder associated with this scheduler.- Specified by:
getBuilder
in interfaceScheduler<T extends ObservedMeasurement<T>>
- Returns:
- builder associated with this scheduler
-
getSelector
public DatesSelector getSelector()
Get the dates selector.- Returns:
- dates selector
-
generate
public SortedSet<T> generate(Map<ObservableSatellite,OrekitStepInterpolator> interpolators)
Generate a sequence of measurements.- Specified by:
generate
in interfaceScheduler<T extends ObservedMeasurement<T>>
- Parameters:
interpolators
- interpolators for spacecraft states- Returns:
- generated measurements
-
measurementIsFeasible
protected abstract boolean measurementIsFeasible(AbsoluteDate date)
Check if a measurement is feasible at some date.- Parameters:
date
- date to check- Returns:
- true if measurement if feasible
- Since:
- 12.0
-
-