...
getSurplusValue
returns sum of surplus for the whole period,updateSurplus
updates the whole surplus, through looping through the list ofRolloverSurplus
; returns the remainder from the lastRolloverSurplus.updateSurplus
.
The class doesn't have a default constructor and can be only constructed bySurplusContainter(List<RolloverSurplus> surplusList)
. The list can be contructed with a helper classSurplusContainerFetcher
.
Configuration
It is not enough for a bundle to juest implement the RolloverBundle
interface to work. There should also be defined three aditional parameters:In order to configure DataBundle
, DurationBundle
, EventBundle
or ForwardBundle
to use rollover functionality following parameters need to be set up:
Name | Description |
---|---|
SURPLUS.PERIOD.ORDER | Defines, how |
SURPLUS.USAGE.MODE | Indicates, whether surplus should be used before or after the |
SURPLUS.ROLLOVER.PERIODS | Amount of previous |