Class DateDriver

All Implemented Interfaces:
TimeStamped

public class DateDriver extends ParameterDriver implements TimeStamped
Parameter driver allowing to drive a date.
Since:
11.1
Author:
Luc Maisonobe
  • Constructor Details

    • DateDriver

      public DateDriver(AbsoluteDate base, String name, boolean start)
      Simple constructor.

      At construction, the parameter is configured as not selected, the reference date is set to null, the value (i.e. the date offset) is set to 0, the scale is set to 1 and the minimum and maximum values are set to negative and positive infinity respectively.

      Parameters:
      base - base date corresponding to shift = 0
      name - name of the parameter
      start - if true, the driver corresponds to a start date
  • Method Details

    • getBaseDate

      public AbsoluteDate getBaseDate()
      Get the base (unshifted) date.
      Returns:
      base (unshifted) date
    • isStart

      public boolean isStart()
      Check if driver corresponds to a start date.
      Returns:
      true if driver corresponds to a start date
    • getDate

      public AbsoluteDate getDate()
      Get the shifted date.
      Specified by:
      getDate in interface TimeStamped
      Returns:
      shifted date