Class VolumesOfHours

java.lang.Object
org.ametys.plugins.odfpilotage.cost.entity.VolumesOfHours

public class VolumesOfHours extends Object
Class representing a VolumesOfHours
  • Constructor Details

    • VolumesOfHours

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

    • getVolumes

      Get the volume of hours map
      Returns:
      the hourly volumes map
    • 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
    • getProgramItemId

      Get the programItemId
      Returns:
      the programItemId
    • 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