Package org.robolectric.shadows
Class ShadowRangingResult.Builder
java.lang.Object
org.robolectric.shadows.ShadowRangingResult.Builder
- Enclosing class:
- ShadowRangingResult
public static class ShadowRangingResult.Builder extends Object
A builder for creating ShadowRangingResults. Status, macaddress, distance [mm] and timestamp
are all mandatory fields. Additional fields can be specified by setters. Use build() to return
the ShadowRangingResult object.
-
Constructor Summary
Constructors Constructor Description Builder(int status, MacAddress mac, long timestampMillis, int distanceMm)
-
Method Summary
Modifier and Type Method Description RangingResult
build()
ShadowRangingResult.Builder
setDistanceStandardDeviation(int stddev)
ShadowRangingResult.Builder
setIs80211mcMeasurement(boolean is80211mcMeasurement)
ShadowRangingResult.Builder
setLci(byte[] lci)
ShadowRangingResult.Builder
setLcr(byte[] lcr)
ShadowRangingResult.Builder
setNumAttemptedMeasurements(int num)
ShadowRangingResult.Builder
setNumSuccessfulMeasurements(int num)
ShadowRangingResult.Builder
setRssi(int rssi)
ShadowRangingResult.Builder
setUnverifiedResponderLocation(ResponderLocation unverifiedResponderLocation)
-
Constructor Details
-
Method Details
-
setDistanceStandardDeviation
-
setRssi
-
setNumAttemptedMeasurements
-
setNumSuccessfulMeasurements
-
setLci
-
setLcr
-
setUnverifiedResponderLocation
public ShadowRangingResult.Builder setUnverifiedResponderLocation(ResponderLocation unverifiedResponderLocation) -
setIs80211mcMeasurement
-
build
-