Class LinearLineDatation

  • All Implemented Interfaces:
    LineDatation

    public class LinearLineDatation
    extends Object
    implements LineDatation
    Linear model for line datation.

    Instances of this class are guaranteed to be immutable.

    Author:
    Luc Maisonobe
    • Constructor Detail

      • LinearLineDatation

        public LinearLineDatation​(AbsoluteDate referenceDate,
                                  double referenceLine,
                                  double rate)
        Simple constructor.
        Parameters:
        referenceDate - reference date
        referenceLine - line number at reference date
        rate - rate of lines scanning (lines / seconds)
    • Method Detail

      • getDate

        public AbsoluteDate getDate​(double lineNumber)
        Get the date for a given line.
        Specified by:
        getDate in interface LineDatation
        Parameters:
        lineNumber - line number
        Returns:
        date at which line is acquired
      • getLine

        public double getLine​(AbsoluteDate date)
        Get the line for a given date.
        Specified by:
        getLine in interface LineDatation
        Parameters:
        date - date
        Returns:
        line number
      • getRate

        public double getRate​(double lineNumber)
        Get the rate of lines scanning.
        Specified by:
        getRate in interface LineDatation
        Parameters:
        lineNumber - line number
        Returns:
        rate of lines scanning (lines / seconds)