Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • getSurplusValue returns sum of surplus for the whole period,
  • updateSurplus updates the whole surplus, through looping through the list of RolloverSurplus; returns the remainder from the last RolloverSurplus.updateSurplus.
    The class doesn't have a default constructor and can be only constructed by SurplusContainter(List<RolloverSurplus> surplusList). The list can be contructed with a helper class SurplusContainerFetcher.

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 SubscriptionBundles should be order, when the surplus is updated. Two possible values are possible: NEWER_FIRST and OLDER_FIRST

SURPLUS.USAGE.MODE

Indicates, whether surplus should be used before or after the SubscriptionBundles. Again two values are possible: USE_SURPLUS_BEFORE_BUNDLE, USE_SURPLUS_AFTER_BUNDLE

SURPLUS.ROLLOVER.PERIODS

Amount of previous SubscriptionBundles used in rollover. In other words, the number defines how many times surplus can be rolled over