Class RxAsyncDataHelper
-
- All Implemented Interfaces:
public class RxAsyncDataHelperUsed 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 classRxAsyncDataHelper.AnalysisResultpublic classRxAsyncDataHelper.AnalysisRequestpublic interfaceRxAsyncDataHelper.Subscriber
-
Constructor Summary
Constructors Constructor Description RxAsyncDataHelper()
-
Method Summary
Modifier and Type Method Description booleancomputeNow(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. booleancomputeNow(RfDurationsList rfDurationsList)Convert a RfDurationsList to a RfDurations object, then compute it to get hexa stream, this stream will be propagated to all subscribers. booleanenqueue(RxAsyncDataHelper.AnalysisRequest analysisRequest)add to a queue this rfDurations, it will be computed later. booleanenqueue(RxAsyncDataHelper.AnalysisRequest analysisRequest, boolean runInParallel)add to a queue this rfDurations, it will be computed later. booleanisTerminated()Indicates if all task are terminated. voidclose()voidaddSubscriber(RxAsyncDataHelper.Subscriber subscriber)voidremoveSubscriber(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)
-
-
-
-