public class

VehicleDoorStatus

extends EventedMeasurement<TheUnit extends Unit>
java.lang.Object
   ↳ com.openxc.measurements.BaseMeasurement<TheUnit extends com.openxc.units.Unit>
     ↳ com.openxc.measurements.EventedMeasurement<TheUnit extends com.openxc.units.Unit>
       ↳ com.openxc.measurements.VehicleDoorStatus

Class Overview

A DoorStatus represents a door's ajar status. This measurement is only valid when used asynchronously, much like any other key or button event in Java. An application registers to receive button events, and decides what to do based on the returned ButtonId and ButtonAction. TODO would you want to be able to query for a specific door's state synchronously?

Summary

Nested Classes
enum VehicleDoorStatus.DoorId The DoorId is the specific door of the vehicle. 
Constants
String ID
[Expand]
Inherited Fields
From class com.openxc.measurements.BaseMeasurement
Public Constructors
VehicleDoorStatus(State<VehicleDoorStatus.DoorId> value, Boolean event)
VehicleDoorStatus(VehicleDoorStatus.DoorId value, Boolean event)
VehicleDoorStatus(VehicleDoorStatus.DoorId value, Boolean event)
VehicleDoorStatus(String value, Boolean event)
Public Methods
Boolean getEvent()
String getGenericName()
Boolean getSerializedEvent()
String getSerializedValue()
Return the value of this measurement as a type good for serialization.
[Expand]
Inherited Methods
From class com.openxc.measurements.EventedMeasurement
From class com.openxc.measurements.BaseMeasurement
From class java.lang.Object
From interface com.openxc.measurements.Measurement

Constants

public static final String ID

Constant Value: "door_status"

Public Constructors

public VehicleDoorStatus (State<VehicleDoorStatus.DoorId> value, Boolean event)

public VehicleDoorStatus (VehicleDoorStatus.DoorId value, Boolean event)

public VehicleDoorStatus (VehicleDoorStatus.DoorId value, Boolean event)

public VehicleDoorStatus (String value, Boolean event)

Public Methods

public Boolean getEvent ()

public String getGenericName ()

public Boolean getSerializedEvent ()

public String getSerializedValue ()

Return the value of this measurement as a type good for serialization.

Returns
  • something easily serializable - e.g. String, Double, Boolean.