Class VolumesOfHours

    • Constructor Detail

      • VolumesOfHours

        public VolumesOfHours​(String programItemId)
        The constructor
        Parameters:
        programItemId - the programItemId
    • Method Detail

      • addVolumes

        public void addVolumes​(String natureId,
                               Double value)
        Add an hourly volume to the map
        Parameters:
        natureId - the nature of the hourly volume
        value - the hourly volume
      • setProgramItemId

        public void setProgramItemId​(String programItemId)
        Set the programItemId
        Parameters:
        programItemId - the programItemId
      • sum

        public void sum​(VolumesOfHours volumeHoraire,
                        Double weight)
        Sum two VolumeHoraire objects and weight the result by a value
        Parameters:
        volumeHoraire - The second VolumeHoraire object to sum
        weight - the weight
      • getTotal

        public Double getTotal()
        Get the total volume of hours of all natures
        Returns:
        the total volume of hours