Class EqTD
java.lang.Object
org.ametys.plugins.odfpilotage.cost.entity.EqTD
Class representing an
EqTD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addGlobalEqTD
(String coursePartId, Double eqTD) Set the global eqTD valuevoid
addLocalEqTD
(String programItemPath, Double eqTD) Set the local eqTD valuevoid
addLocalEqTD4CoursePart
(String itemPath, boolean held) Set the local eqTD value for a course partvoid
addProratedEqTD
(String programItemPath, Double eqTD) Set the pro-rated eqTD valueGet the global eqTD value by course partGet the global eqTD valueGet all local eqTD valuesgetLocalEqTD
(String programItemPath) Get the local eqTD valueGet all pro-rated eqTD valuesgetProratedEqTD
(String programItemPath) Get the pro-rated eqTD valuevoid
Sum pro-rated and local eqTD values
-
Constructor Details
-
EqTD
public EqTD()The constructor
-
-
Method Details
-
getGlobalEqTD
Get the global eqTD value- Returns:
- the global eqTD value
-
getAllGlobalEqTD
Get the global eqTD value by course part- Returns:
- all global eqTD values by course part
-
addGlobalEqTD
Set the global eqTD value- Parameters:
coursePartId
- The course part identifiereqTD
- 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
-
addLocalEqTD
Set the local eqTD value- Parameters:
programItemPath
- the program item patheqTD
- the value
-
addLocalEqTD4CoursePart
Set the local eqTD value for a course part- Parameters:
itemPath
- the course part pathheld
-true
if the course part is held by the current step
-
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
-
sum
Sum pro-rated and local eqTD values- Parameters:
eqTD
- The second eqTD object to sumnameInPath
- the name to search in the path
-