Class CalculateContingentTotalServiceImpl
java.lang.Object
ch.tocco.nice2.optional.contingent.impl.services.CalculateContingentTotalServiceImpl
- All Implemented Interfaces:
CalculateContingentTotalService
@Component
public class CalculateContingentTotalServiceImpl
extends Object
implements CalculateContingentTotalService
Calculates the Totals on as well Movements as Contingents
Takes a Tuple2 of Entity (Contingent) and
Iterable<Entity>
(all related Movements) as parameter.
1. Calculates the Movement-Total of every Movement that was passed to this task
2. Calculates the total of all Movements of a given Contingent and writes it to the Contingent-Total field-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncalculateTotal
(Entity contingent, List<Entity> relevantMovements) void
setEffectRelation
(List<EffectRelationContribution> contributions)
-
Constructor Details
-
CalculateContingentTotalServiceImpl
public CalculateContingentTotalServiceImpl(org.slf4j.Logger logger)
-
-
Method Details
-
calculateTotal
- Specified by:
calculateTotal
in interfaceCalculateContingentTotalService
-
setEffectRelation
-