public static final class VehicleStateManager.ReportVehicleStateOptions extends Object
ReportVehicleStateOptions options = new ReportVehicleStateOptions("vehicle1")
.withMeasurements(
new Date(),
new AmbientTemperature(30),
new Humidity(70),
new Brakes(true),
new Wipers(Wipers.MEDIUM))
.withMeasurements(
new Date(),
new Rpm(3500),
new Throttle(60),
new Brakes(true),
new Abs(true));
Constructor and Description |
---|
ReportVehicleStateOptions(String vehicleId)
Initializes a new instance of the
VehicleStateManager.ReportVehicleStateOptions . |
Modifier and Type | Method and Description |
---|---|
String |
toString() |
VehicleStateManager.ReportVehicleStateOptions |
withMeasurements(Date observationDate,
VehicleState.MeasurementAttribute... attributes)
Add a new new set of vehicle state measurements.
|
VehicleStateManager.ReportVehicleStateOptions |
withMeasurements(List multipleMeasurements)
Add a new list of
Measurement 's. |
VehicleStateManager.ReportVehicleStateOptions |
withMeasurements(Location location,
Date observationDate,
VehicleState.MeasurementAttribute... attributes)
Add a new set of vehicle state measurements.
|
public ReportVehicleStateOptions(String vehicleId)
VehicleStateManager.ReportVehicleStateOptions
.vehicleId
- Vehicle identifier.public VehicleStateManager.ReportVehicleStateOptions withMeasurements(Location location, Date observationDate, VehicleState.MeasurementAttribute... attributes)
location
- Location where the measurement was recorded.observationDate
- Measurements observation date.attributes
- Measurement attributes.public VehicleStateManager.ReportVehicleStateOptions withMeasurements(List multipleMeasurements)
Measurement
's.multipleMeasurements
- A list of measurements.public VehicleStateManager.ReportVehicleStateOptions withMeasurements(Date observationDate, VehicleState.MeasurementAttribute... attributes)
observationDate
- Measurements observation date.attributes
- Measurement attributes.Copyright © 2013-2018 INRIX, Inc. All Rights Reserved.