Class AbstractScheduler<T extends ObservedMeasurement<T>>

    • Constructor Detail

      • AbstractScheduler

        protected AbstractScheduler​(MeasurementBuilder<T> builder,
                                    DatesSelector selector)
        Simple constructor.
        Parameters:
        builder - builder for individual measurements
        selector - 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 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