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
14 days, then 8 split weeks, then 3 months 
But 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 months 

It 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

      void calculate​(TimelineBuilder builder, java.util.Map<java.lang.String,​java.lang.String> params)
      Calculates a MIXED timeline of buckets. Optionally parameterized with values from the TLV xml.

      This method may opt to omit some of the Bucketizations specified in the TLV xml while calculating timeline. However, any Bucketization not present in the TLV xml will be ignored if populated in TimelineBuilder

      Parameters:
      builder - implementation should mutate this object to form the timeline
      params - Custom parameters provided in TLV