Interface CalculatedResultListener


public interface CalculatedResultListener
Interface used to provide calculated values to bottom chart model
  • Method Summary

    Modifier and Type Method Description
    boolean isCancelled()
    It's recommended to poll this once in a while to avoid unnecessary computations.
    void provideResponse​(java.lang.Object value)
    It is expected that number of provided responses is equal to number of requested intervals.
    void setCompleted()
    You are required to make this call when you either completed and provided all calculations or aborted calculation.
  • Method Details

    • isCancelled

      boolean isCancelled()
      It's recommended to poll this once in a while to avoid unnecessary computations. If it's set to true then you can abort computation (and call setCompleted() to acknowledge).
      Returns:
      true if this request is no longer valid, false otherwise
    • provideResponse

      void provideResponse​(java.lang.Object value)
      It is expected that number of provided responses is equal to number of requested intervals. Only after all responses are provided request is considered completed. Responses should be provided in chronological order.
      Parameters:
      value - representation of this pixel state (currently accepts Double, OnlineCalculatable.Marker, List<OnlineCalculatable.Marker> or OnlineCalculatable.ValueBundle)
    • setCompleted

      void setCompleted()
      You are required to make this call when you either completed and provided all calculations or aborted calculation. No requests will be made until setCompleted is called