Class Effectives
java.lang.Object
org.ametys.plugins.odfpilotage.cost.entity.Effectives
Class representing
Effectives
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(Effectives effectivesToAdd, String nameInPath) Add the effectives to the current effectivesvoid
addComputedEffective
(String step, Double computedEffective) Add a computed effective to the existing one.void
addEstimatedEffective
(String itemPath, Double estimatedEffective) Add an estimated effective to the existing one.cloneWithWeight
(double weight) Apply a weight to all effectives by step of a program item but not save it.Get the global computed effectiveGet the local estimated effectives by stepGet the entered effectives in the 'numberOfStudentsEstimated' attributeGet the global estimated effectiveGet the local estimated effectives by pathGet the overridden effectives by the cost computation toolvoid
setEnteredEffective
(Optional<Double> enteredEffective) Set the entered effectives in the 'numberOfStudentsEstimated' attributevoid
setOverriddenEffective
(Optional<Double> overriddenEffective) Set the overridden effectives by the cost computation toolvoid
sum
(Effectives effectivesToAdd) Sum effectives to the current effectives
-
Constructor Details
-
Effectives
public Effectives()The constructor
-
-
Method Details
-
cloneWithWeight
Apply a weight to all effectives by step of a program item but not save it.- Parameters:
weight
- the weight- Returns:
- A clone of the effectives but with a weight
-
setOverriddenEffective
Set the overridden effectives by the cost computation tool- Parameters:
overriddenEffective
- AnOptional
of the overridden effective
-
setEnteredEffective
Set the entered effectives in the 'numberOfStudentsEstimated' attribute- Parameters:
enteredEffective
- AnOptional
of the entered effective
-
addEstimatedEffective
Add an estimated effective to the existing one.- Parameters:
itemPath
- The item pathestimatedEffective
- The estimated effective
-
addComputedEffective
Add a computed effective to the existing one.- Parameters:
step
- The step idcomputedEffective
- The computed effective
-
add
Add the effectives to the current effectives- Parameters:
effectivesToAdd
- the parent effectivesnameInPath
- the name to add in the path
-
sum
Sum effectives to the current effectives- Parameters:
effectivesToAdd
- the child effectives
-
getEnteredEffective
Get the entered effectives in the 'numberOfStudentsEstimated' attribute- Returns:
- an
Optional
of the entered effective,Optional.empty()
if not defined
-
getOverriddenEffective
Get the overridden effectives by the cost computation tool- Returns:
- an
Optional
of the overridden effective,Optional.empty()
if not defined
-
getEstimatedEffective
Get the global estimated effective- Returns:
- the estimated effective
-
getEstimatedEffectiveByPath
Get the local estimated effectives by path- Returns:
- the estimated effectives by path
-
getComputedEffective
Get the global computed effective- Returns:
- the computed effective
-
getComputedEffectiveByStep
Get the local estimated effectives by step- Returns:
- the computed effectives by step
-