Class EqTD
java.lang.Object
org.ametys.plugins.odfpilotage.cost.entity.EqTD
Class representing an
EqTD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addLocalEqTD
(String programItemPath, Double eqTD) Set the local eqTD valuevoid
addProRatedEqTD
(String programItemPath, Double eqTD) Set the pro-rated eqTD valueGet the global eqTD valueGet all local eqTD valuesgetLocalEqTD
(String programItemPath) Get the local eqTD valueGet the program item idGet all pro-rated eqTD valuesgetProRatedEqTD
(String programItemPath) Get the pro-rated eqTD valuevoid
setGlobalEqTD
(Double eqTD) Set the global eqTD valuevoid
Sum pro-rated and local eqTD values
-
Constructor Details
-
EqTD
The constructor- Parameters:
programItemId
- the program item id
-
-
Method Details
-
getLocalEqTD
Get the local eqTD value- Parameters:
programItemPath
- the program item path- Returns:
- the local eqTD value
-
getLocalEqTD
Get all local eqTD values- Returns:
- all local eqTD values
-
addLocalEqTD
Set the local eqTD value- Parameters:
programItemPath
- the program item patheqTD
- the value
-
getGlobalEqTD
Get the global eqTD value- Returns:
- the global eqTD value
-
setGlobalEqTD
Set the global eqTD value- Parameters:
eqTD
- the value
-
addProRatedEqTD
Set the pro-rated eqTD value- Parameters:
programItemPath
- the program item patheqTD
- the value
-
getProRatedEqTD
Get the pro-rated eqTD value- Parameters:
programItemPath
- the program item path- Returns:
- the pro-rated eqTD value
-
getProRatedEqTD
Get all pro-rated eqTD values- Returns:
- all pro-rated eqTD values
-
getProgramItemId
Get the program item id- Returns:
- the program item id
-
sum
Sum pro-rated and local eqTD values- Parameters:
eqTD
- The second eqTD object to sumweight
- the weightchildPath
- the path of the old eqTD valueparentPath
- the path of the new eqTD value
-