java.lang.Object | |
↳ | com.commsignia.v2x.client.model.bsm.BasicSafetyMessage |
Represents a basic safety message.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
BasicSafetyMessage()
Creates a new instance.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean | equals(Object o) | ||||||||||
AntiLockBrakeState |
getAbsStatus()
Returns the ABS status.
| ||||||||||
AuxiliaryBrakeState |
getAuxBrakeStatus()
Returns the auxiliary brake status.
| ||||||||||
BrakeBoostState |
getBrakeBoostStatus()
Returns the brake boost status.
| ||||||||||
Double |
getElevation(LengthUnit unit)
Returns the elevation in the sepecified unit or null if not specified.
| ||||||||||
BSMSafetyEventFlags |
getEvents()
Returns the event flags if available.
| ||||||||||
FullPositionVector |
getFullPositionVector()
Returns the full position vector if available.
| ||||||||||
double |
getHeading(DegreeUnit unit)
Returns the heading.
| ||||||||||
long |
getId()
Returns the id.
| ||||||||||
Double |
getLateralAcceleration(AccelerationUnit unit)
Returns the lateral acceleration.
| ||||||||||
long |
getLatitude()
Returns the latitude.
| ||||||||||
LightbarInUse |
getLightBarInUse()
Returns light bar status.
| ||||||||||
long |
getLongitude()
Returns the longitude.
| ||||||||||
Double |
getLongitudinalAcceleration(AccelerationUnit unit)
Returns the longitudinal acceleration.
| ||||||||||
int |
getMsgCount()
Returns the message count.
| ||||||||||
long |
getSecMark(TimeUnit unit)
Returns the second mark.
| ||||||||||
Double |
getSemiMajorAccuracy(LengthUnit unit)
Returns the semi major accuracy in the specified unit.
| ||||||||||
Double |
getSemiMajorOrientation(DegreeUnit unit)
Returns the semi major orientation in the specified unit.
| ||||||||||
Double |
getSemiMinorAccuracy(LengthUnit unit)
Returns the semi minor accuracy in the specified unit.
| ||||||||||
Double |
getSpeed(SpeedUnit unit)
Returns the speed.
| ||||||||||
StabilityControlState |
getStabilityControlStatus()
Returns the stability control status.
| ||||||||||
Double |
getSteeringWheelAngle(DegreeUnit unit)
Returns the steering wheel angle.
| ||||||||||
Double |
getThrottlePosition()
Returns the throttle position.
| ||||||||||
TractionControlState |
getTractionControlStatus()
Returns the traction control status.
| ||||||||||
TransmissionState |
getTransmissionState()
Returns the transmission state.
| ||||||||||
double |
getVehicheWidth(LengthUnit unit)
Returns the vehicle width in the specified unit.
| ||||||||||
double |
getVehicleLength(LengthUnit unit)
Returns the vehicle length in the specified unit
| ||||||||||
VehicleType |
getVehicleType()
Returns the vehicle type.
| ||||||||||
BrakeAppliedState |
getWheelBrakeStatus()
Returns the wheel brake status.
| ||||||||||
double |
getYawRate(DegreeUnit unit)
Returns the yaw rate.
| ||||||||||
boolean |
hasElevation()
Retruns true if elevation has been set.
| ||||||||||
boolean |
hasEvents()
Returns whether event flags are available.
| ||||||||||
boolean |
hasFullPositionVector()
Returns whether the full position vector is available.
| ||||||||||
boolean |
hasSemiMajorAccuracy()
Returns true if the semi major accuracy has been set.
| ||||||||||
boolean |
hasSemiMajorOrientation()
Returns true if the semi major orientation has been set.
| ||||||||||
boolean |
hasSemiMinorAccuracy()
Returns true if the semi minor accuracy has been set.
| ||||||||||
boolean |
hasSteeringWheelAngle()
Returns true if the steering wheel angle has been set.
| ||||||||||
int | hashCode() | ||||||||||
void |
setAbsStatus(AntiLockBrakeState absStatus)
Sets the ABS status.
| ||||||||||
void |
setAuxBrakeStatus(AuxiliaryBrakeState auxBrakeStatus)
Sets the auxiliary brake status.
| ||||||||||
void |
setBrakeBoostStatus(BrakeBoostState brakeBoostStatus)
Sets the brake boost status.
| ||||||||||
void |
setElevation(double elevation, LengthUnit elevationUnit)
Sets the elevation in the specified unit.
| ||||||||||
void |
setEvents(BSMSafetyEventFlags events)
Sets the event flags.
| ||||||||||
void |
setFullPositionVector(FullPositionVector fullPositionVector)
Sets the full position vector.
| ||||||||||
void |
setHeading(double heading, DegreeUnit headingUnit)
Sets the heading.
| ||||||||||
void |
setId(long id)
Sets the id.
| ||||||||||
void |
setLateralAcceleration(double lateralAcceleration, AccelerationUnit lateralAccelerationUnit)
Sets the lateral acceleration.
| ||||||||||
void |
setLatitude(long latitude)
Sets the latitude.
| ||||||||||
void |
setLightBarInUse(LightbarInUse lightBarInUse)
Sets state of the light bar.
| ||||||||||
void |
setLongitude(long longitude)
Sets the longitude.
| ||||||||||
void |
setLongitudinalAcceleration(double longitudinalAcceleration, AccelerationUnit longitudinalAccelerationUnit)
Sets the longitudinal acceleration.
| ||||||||||
void |
setMsgCount(int msgCount)
Sets the message count.
| ||||||||||
void |
setSecMark(long secMark, TimeUnit secMarkUnit)
Sets the seconds mark.
| ||||||||||
void |
setSemiMajorAccuracy(double semiMajorAccuracy, LengthUnit semiMajorAccuracyUnit)
Sets the semi major accuracy.
| ||||||||||
void |
setSemiMajorOrientation(double semiMajorOrientation, DegreeUnit semiMajorOrientationUnit)
Sets the semi major orientation.
| ||||||||||
void |
setSemiMinorAccuracy(double semiMinorAccuracy, LengthUnit semiMinorAccuracyUnit)
Sets the semi minor accuracy.
| ||||||||||
void |
setSpeed(double speed, SpeedUnit speedUnit)
Sets the speed.
| ||||||||||
void |
setStabilityControlStatus(StabilityControlState stabilityControlStatus)
Sets the stability control status
| ||||||||||
void |
setSteeringWheelAngle(double steeringWheelAngle, DegreeUnit steeringWheelAngleUnit)
Sets the steering wheel angle.
| ||||||||||
void |
setThrottlePosition(Double throttlePosition)
Sets the throttle position.
| ||||||||||
void |
setTractionControlStatus(TractionControlState tractionControlStatus)
Sets the traction control status.
| ||||||||||
void |
setTransmissionState(TransmissionState transmissionState)
Sets the transmission state.
| ||||||||||
void |
setVehicleLength(double vehicleLength, LengthUnit vehicleLengthUnit)
Sets the vehicle length.
| ||||||||||
void |
setVehicleType(VehicleType vehicleType)
Sets the vehicle type
| ||||||||||
void |
setVehicleWidth(double vehicheWidth, LengthUnit vehicleWidthUnit)
Sets the vehichle width.
| ||||||||||
void |
setWheelBrakeStatus(BrakeAppliedState wheelBrakeStatus)
Sets the wheel brake status.
| ||||||||||
void |
setYawRate(double yawRate, DegreeUnit yawRateUnit)
Sets the yaw rate.
| ||||||||||
String | toString() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a new instance.
Returns the auxiliary brake status.
Returns the brake boost status.
Returns the elevation in the sepecified unit or null if not specified.
unit | target unit |
---|
Returns the event flags if available.
Returns the full position vector if available.
Returns the heading.
unit | target unit |
---|
Returns the id.
Returns the lateral acceleration.
unit | target unit |
---|
Returns the latitude.
Returns the longitude.
Returns the longitudinal acceleration.
unit | target unit |
---|
Returns the message count.
Returns the second mark.
unit | target unit |
---|
Returns the semi major accuracy in the specified unit.
unit | target unit |
---|
Returns the semi major orientation in the specified unit.
unit | target unit |
---|
Returns the semi minor accuracy in the specified unit.
unit | target unit |
---|
Returns the speed.
unit | target unit |
---|
Returns the stability control status.
Returns the steering wheel angle.
unit | target unit |
---|
Returns the throttle position.
Returns the traction control status.
Returns the transmission state.
Returns the vehicle width in the specified unit.
unit | target unit |
---|
Returns the vehicle length in the specified unit
unit | target unit |
---|
Returns the wheel brake status.
Returns the yaw rate.
unit | target unit |
---|
Retruns true if elevation has been set.
Returns whether event flags are available.
Returns whether the full position vector is available.
Returns true if the semi major accuracy has been set.
Returns true if the semi major orientation has been set.
Returns true if the semi minor accuracy has been set.
Returns true if the steering wheel angle has been set.
Sets the ABS status.
absStatus | ABS status |
---|
Sets the auxiliary brake status.
auxBrakeStatus | auxiliary brake status |
---|
Sets the brake boost status.
brakeBoostStatus | brake boost status |
---|
Sets the elevation in the specified unit.
elevation | elevation value |
---|---|
elevationUnit | elevation unit |
Sets the event flags.
events | event flags |
---|
Sets the full position vector.
fullPositionVector | full position vector |
---|
Sets the heading.
heading | heading value |
---|---|
headingUnit | heading unit |
Sets the id.
id | id |
---|
Sets the lateral acceleration.
lateralAcceleration | lateral acceleration value |
---|---|
lateralAccelerationUnit | lateral acceleration unit |
Sets the latitude.
latitude | latitude in 0.1 microdegrees |
---|
Sets state of the light bar.
lightBarInUse | light bar state |
---|
Sets the longitude.
longitude | longitude in 0.1 microdegrees |
---|
Sets the longitudinal acceleration.
longitudinalAcceleration | longitudinal acceleration value |
---|---|
longitudinalAccelerationUnit | longitudinal acceleration unit |
Sets the message count.
msgCount | message count |
---|
Sets the seconds mark.
secMark | seconds mark value |
---|---|
secMarkUnit | seconds mark unit |
Sets the semi major accuracy.
semiMajorAccuracy | semi major accuracy value |
---|---|
semiMajorAccuracyUnit | semi major accuracy unit |
Sets the semi major orientation.
semiMajorOrientation | semi major orientation value |
---|---|
semiMajorOrientationUnit | semi major orientation unit |
Sets the semi minor accuracy.
semiMinorAccuracy | semi minor accuracy value |
---|---|
semiMinorAccuracyUnit | semi minor accuracy unit |
Sets the speed.
speed | speed value |
---|---|
speedUnit | speed unit |
Sets the stability control status
stabilityControlStatus | stability control status |
---|
Sets the steering wheel angle.
steeringWheelAngle | steering wheel angle |
---|---|
steeringWheelAngleUnit | steering wheel unit |
Sets the throttle position.
throttlePosition | throttle position in percent |
---|
Sets the traction control status.
tractionControlStatus | traction control status |
---|
Sets the transmission state.
transmissionState | transmission state |
---|
Sets the vehicle length.
vehicleLength | vehicle length value |
---|---|
vehicleLengthUnit | vehicle length unit |
Sets the vehicle type
vehicleType | vehicle type |
---|
Sets the vehichle width.
vehicheWidth | vehicle width value |
---|---|
vehicleWidthUnit | vehicle width unit |
Sets the wheel brake status.
wheelBrakeStatus | wheel brake status |
---|
Sets the yaw rate.
yawRate | yaw rate value |
---|---|
yawRateUnit | yaw rate unit |