public static final 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 and Description |
---|
Builder(int status,
MacAddress mac,
long timestamp,
int distanceMm) |
Modifier and Type | Method and Description |
---|---|
RangingResult |
build() |
ShadowRangingResult.Builder |
setDistanceStandardDeviation(int stddev) |
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) |
public Builder(int status, MacAddress mac, long timestamp, int distanceMm)
public ShadowRangingResult.Builder setDistanceStandardDeviation(int stddev)
public ShadowRangingResult.Builder setRssi(int rssi)
public ShadowRangingResult.Builder setNumAttemptedMeasurements(int num)
public ShadowRangingResult.Builder setNumSuccessfulMeasurements(int num)
public ShadowRangingResult.Builder setLci(byte[] lci)
public ShadowRangingResult.Builder setLcr(byte[] lcr)
public RangingResult build()