Interface CalculatedResultListener
public interface CalculatedResultListener
Interface used to provide calculated values to bottom chart model
-
Method Summary
Modifier and TypeMethodDescriptionbooleanIt's recommended to poll this once in a while to avoid unnecessary computations.voidprovideResponse(Object value) It is expected that number of provided responses is equal to number of requested intervals.voidYou 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 callsetCompleted()to acknowledge).- Returns:
- true if this request is no longer valid, false otherwise
-
provideResponse
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 acceptsDouble,OnlineCalculatable.Marker, List<OnlineCalculatable.Marker> orOnlineCalculatable.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
-