Class RatingInput


public class RatingInput extends AbstractRatingInput
Defines input for a rating function.
  • Constructor Details

    • RatingInput

      public RatingInput()
      Constructs an empty invalid rating input. Populate using the setters to become valid.
    • RatingInput

      public RatingInput(IRatingSpecification spec, Date ratingTime, List<Date> indepDates, List<ParameterValues> indepValues, List<String> indepUnitList, String depUnit, boolean roundDependent)
      Constructs a fully provisioned and valid rating input object.
    • RatingInput

      public RatingInput(IRatingSpecification ratingSpecification, Date ratingTime)
      Constructs a rating input with just the spec and rating time, i.e. the rating creation date. This also creates empty independent parameter value objects.
      Parameters:
      ratingSpecification -
      ratingTime -
  • Method Details

    • validate

      public void validate() throws DataSetException
      A check that the input data is ready for performing a rating function.
      Specified by:
      validate in class AbstractRatingInput
      Throws:
      DataObjectException
      DataSetException
    • getIndependentValues

      public List<ParameterValues> getIndependentValues()
      Returns a copy of the independent values list.
      Returns:
    • getIndependentDates

      public List<Date> getIndependentDates()
      Returns a copy of the independent input dates list, these correspond to the effective dates.
      Returns:
    • setIndependentInput

      public final void setIndependentInput(List<Date> indepDates, List<ParameterValues> indepValues)
      Sets the independent input to the arg values. This will copy the values from the arg lists into internal lists.
      Parameters:
      indepDates - corresponds to the effective dates.
      indepValues -
    • getUnitList

      public List<String> getUnitList()
      Returns a list of the units. The ordered independent units are first followed by the dependent unit.
      Returns:
    • setIndepdentUnitList

      public final void setIndepdentUnitList(List<String> unitList)
      Sets the units for the independent parameters. This copies the unit strings from the arg list into an internal list.
      Parameters:
      unitList -
    • getIndependentUnitList

      public List<String> getIndependentUnitList()
      Returns a copy of the independent parameter units. If there are no specified independent parameter units, then the template's parameter units are returned.
      Returns: