Class ReverseRatingInput

java.lang.Object
hec.data.rating.AbstractRatingInput
hec.data.rating.ReverseRatingInput

public class ReverseRatingInput extends AbstractRatingInput
Describes input for a reverse rating function. This requires that the specification be a simple 1 independent parameter : 1 dependent parameter rating.
  • Constructor Details

    • ReverseRatingInput

      public ReverseRatingInput()
      Constructs an empty invalid reverse rating input object. Use the setters to build a populated valid object.
    • ReverseRatingInput

      public ReverseRatingInput(IRatingSpecification ratingSpecification, Date ratingTime)
      Constructs a reverse rating input object for the given spec and rating time, i.e. rating creation date. This constructor will also build and empty dependent parameter values using the rating spec.
      Parameters:
      ratingSpecification -
      ratingTime -
    • ReverseRatingInput

      public ReverseRatingInput(IRatingSpecification spec, Date ratingTime, List<Date> depDates, ParameterValues depValues, String depUnit, String indepUnit, boolean roundDependent)
      Constructs a valid fully provisioned reverse rating input object.
      Parameters:
      spec -
      ratingTime -
      depDates -
      depValues -
      depUnit -
      indepUnit -
      roundDependent -
  • Method Details

    • setDependentInput

      public final void setDependentInput(List<Date> depDates, ParameterValues depValues)
      Sets the dependent parameter values and dates (i.e. effective dates) to the arg values.
      Parameters:
      depDates -
      depValues -
    • validate

      public void validate() throws DataSetException
      Validates this reverse rating input throwing an exception if it cannot be used to perform a reverse rating function.
      Specified by:
      validate in class AbstractRatingInput
      Throws:
      DataSetException
    • getDependentValues

      public ParameterValues getDependentValues()
      Returns the dependent parameter values.
      Returns:
    • getUnitList

      public List<String> getUnitList()
      Returns the units for the rating function, independent units followed by dependent units.
      Returns:
    • getDependentDates

      public List<Date> getDependentDates()
      Returns the dependent dates, i.e. effective dates, associated with the dependent parameter values double array.
      Returns:
    • setIndependentUnit

      public final void setIndependentUnit(String indepUnit)
      Sets the independent unit to the arg value.
      Parameters:
      indepUnit -