public class VehicleButtonEvent extends EventedMeasurement<State<VehicleButtonEvent.ButtonId>>
Modifier and Type | Class and Description |
---|---|
static class |
VehicleButtonEvent.ButtonAction
The ButtonAction is the specific event that occurred.
|
static class |
VehicleButtonEvent.ButtonId
The ButtonId is the direction of a button within a single control
cluster.
|
Measurement.Listener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID |
mValue
Constructor and Description |
---|
VehicleButtonEvent(State<VehicleButtonEvent.ButtonId> value,
State<VehicleButtonEvent.ButtonAction> event) |
VehicleButtonEvent(java.lang.String value,
java.lang.String event) |
VehicleButtonEvent(VehicleButtonEvent.ButtonId value,
VehicleButtonEvent.ButtonAction event) |
Modifier and Type | Method and Description |
---|---|
State<VehicleButtonEvent.ButtonAction> |
getEvent() |
java.lang.String |
getGenericName() |
java.lang.String |
getSerializedEvent() |
java.lang.String |
getSerializedValue()
Return the value of this measurement as a type good for serialization.
|
equals, hasEvent, toVehicleMessage
getAge, getBirthtime, getClassForId, getKeyForMeasurement, getMeasurementFromMessage, getMeasurementFromMessage, getName, getRange, getValue, hasRange, setTimestamp, toString
public static final java.lang.String ID
public VehicleButtonEvent(State<VehicleButtonEvent.ButtonId> value, State<VehicleButtonEvent.ButtonAction> event)
public VehicleButtonEvent(VehicleButtonEvent.ButtonId value, VehicleButtonEvent.ButtonAction event)
public VehicleButtonEvent(java.lang.String value, java.lang.String event)
public State<VehicleButtonEvent.ButtonAction> getEvent()
getEvent
in class EventedMeasurement<State<VehicleButtonEvent.ButtonId>>
public java.lang.String getSerializedEvent()
getSerializedEvent
in class EventedMeasurement<State<VehicleButtonEvent.ButtonId>>
public java.lang.String getSerializedValue()
Measurement
getSerializedValue
in interface Measurement
getSerializedValue
in class BaseMeasurement<State<VehicleButtonEvent.ButtonId>>
public java.lang.String getGenericName()
getGenericName
in interface Measurement
getGenericName
in class BaseMeasurement<State<VehicleButtonEvent.ButtonId>>