public abstract class EventedMeasurement<TheUnit extends Unit> extends BaseMeasurement<TheUnit>
Measurement.Listener
mValue
Constructor and Description |
---|
EventedMeasurement(TheUnit value,
Unit event) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
getEvent() |
abstract java.lang.Object |
getSerializedEvent() |
boolean |
hasEvent() |
SimpleVehicleMessage |
toVehicleMessage() |
getAge, getBirthtime, getClassForId, getGenericName, getKeyForMeasurement, getMeasurementFromMessage, getMeasurementFromMessage, getName, getRange, getSerializedValue, getValue, hasRange, setTimestamp, toString
public abstract java.lang.Object getSerializedEvent()
public SimpleVehicleMessage toVehicleMessage()
toVehicleMessage
in interface Measurement
toVehicleMessage
in class BaseMeasurement<TheUnit extends Unit>
public java.lang.Object getEvent()
public boolean hasEvent()
public boolean equals(java.lang.Object obj)
equals
in class BaseMeasurement<TheUnit extends Unit>