Package com.onenetwork.platform.data.tlv
Interface TimelineCalculator
public interface TimelineCalculator
TimelineCalculator is used to override fixed buckets size for PreDefinedMixedBucketization in TLV.
e.g. By using fixed values, Timeline can be requested as
e.g. By using fixed values, Timeline can be requested as
14 days, then 8 split weeks, then 3 monthsBut using TimelineCalculator, Timeline you can request more complex combos such as:
2 weeks-worth of days, followed by 2 months-worth of split weeks, followed by 3 monthsIt is also permitted to change the start date of the timeline.
-
Method Summary
Modifier and Type Method Description void
calculate(TimelineBuilder builder, java.util.Map<java.lang.String,java.lang.String> params)
Calculates a MIXED timeline of buckets.
-
Method Details
-
calculate
Calculates a MIXED timeline of buckets. Optionally parameterized with values from the TLV xml. This method may opt to omit some of theBucketization
s specified in the TLV xml while calculating timeline. However, anyBucketization
not present in the TLV xml will be ignored if populated inTimelineBuilder
- Parameters:
builder
- implementation should mutate this object to form the timelineparams
- Custom parameters provided in TLV
-