Class AbstractScheduler<T extends ObservedMeasurement<T>>

    • Constructor Detail

      • AbstractScheduler

        protected AbstractScheduler​(MeasurementBuilder<T> builder,
                                    DatesSelector selector,
                                    Predicate<EstimatedMeasurementBase<T>> filter)
        Simple constructor.
        Parameters:
        builder - builder for individual measurements
        selector - selector for dates
        filter - predicate for a posteriori filtering of generated measurements (measurements are accepted if the predicates evaluates to true)
        Since:
        13.0
    • 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 interface Scheduler<T extends ObservedMeasurement<T>>
        Parameters:
        start - start of the measurements time span
        end - end of the measurements time span
      • getSelector

        public DatesSelector getSelector()
        Get the dates selector.
        Returns:
        dates selector
      • 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