Class RxAsyncDataHelper
-
- All Implemented Interfaces:
public class RxAsyncDataHelper
Used to convert in background an array of durations in µs (aka pulse widths) to Hexadecimal data.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
RxAsyncDataHelper.AnalysisResult
public class
RxAsyncDataHelper.AnalysisRequest
public interface
RxAsyncDataHelper.Subscriber
-
Constructor Summary
Constructors Constructor Description RxAsyncDataHelper()
-
Method Summary
Modifier and Type Method Description boolean
computeNow(RxAsyncDataHelper.AnalysisRequest analysisRequest)
Convert a RfDurationsList stored in AnalysisRequest to a RfDurations object, an algorithm try to remove given glitchs ,then compute it to get hexa stream, this stream will be propagated to all subscribers. boolean
computeNow(RfDurationsList rfDurationsList)
Convert a RfDurationsList to a RfDurations object, then compute it to get hexa stream, this stream will be propagated to all subscribers. boolean
enqueue(RxAsyncDataHelper.AnalysisRequest analysisRequest)
add to a queue this rfDurations, it will be computed later. boolean
enqueue(RxAsyncDataHelper.AnalysisRequest analysisRequest, boolean runInParallel)
add to a queue this rfDurations, it will be computed later. boolean
isTerminated()
Indicates if all task are terminated. void
close()
void
addSubscriber(RxAsyncDataHelper.Subscriber subscriber)
void
removeSubscriber(RxAsyncDataHelper.Subscriber subscriber)
-
-
Method Detail
-
computeNow
boolean computeNow(RxAsyncDataHelper.AnalysisRequest analysisRequest)
Convert a RfDurationsList stored in AnalysisRequest to a RfDurations object, an algorithm try to remove given glitchs ,then compute it to get hexa stream, this stream will be propagated to all subscribers. WARNING, call computeNow will cancel previous analysis started by a call to computeNow !
-
computeNow
boolean computeNow(RfDurationsList rfDurationsList)
Convert a RfDurationsList to a RfDurations object, then compute it to get hexa stream, this stream will be propagated to all subscribers. WARNING, call computeNow will cancel previous analysis started by a call to computeNow !
-
enqueue
boolean enqueue(RxAsyncDataHelper.AnalysisRequest analysisRequest)
add to a queue this rfDurations, it will be computed later. when compute is done, subscribers are notified.
-
enqueue
boolean enqueue(RxAsyncDataHelper.AnalysisRequest analysisRequest, boolean runInParallel)
add to a queue this rfDurations, it will be computed later. when compute is done, subscribers are notified.
- Parameters:
runInParallel
- enqueued analysis will be evaluated when previous analysis obj will be evaluated.
-
isTerminated
boolean isTerminated()
Indicates if all task are terminated.
-
close
void close()
-
addSubscriber
void addSubscriber(RxAsyncDataHelper.Subscriber subscriber)
-
removeSubscriber
void removeSubscriber(RxAsyncDataHelper.Subscriber subscriber)
-
-
-
-