Class VolumesOfHours
java.lang.Object
org.ametys.plugins.odfpilotage.cost.entity.VolumesOfHours
Class representing a
VolumesOfHours
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addVolumes
(String natureId, Double value) Add an hourly volume to the mapGet the programItemIdgetTotal()
Get the total volume of hours of all naturesGet the volume of hours mapvoid
setProgramItemId
(String programItemId) Set the programItemIdvoid
sum
(VolumesOfHours volumeHoraire, Double weight) Sum two VolumeHoraire objects and weight the result by a value
-
Constructor Details
-
VolumesOfHours
The constructor- Parameters:
programItemId
- the programItemId
-
-
Method Details
-
getVolumes
Get the volume of hours map- Returns:
- the hourly volumes map
-
addVolumes
Add an hourly volume to the map- Parameters:
natureId
- the nature of the hourly volumevalue
- the hourly volume
-
getProgramItemId
Get the programItemId- Returns:
- the programItemId
-
setProgramItemId
Set the programItemId- Parameters:
programItemId
- the programItemId
-
sum
Sum two VolumeHoraire objects and weight the result by a value- Parameters:
volumeHoraire
- The second VolumeHoraire object to sumweight
- the weight
-
getTotal
Get the total volume of hours of all natures- Returns:
- the total volume of hours
-