public class

LdmObject

extends Object
java.lang.Object
   ↳ com.commsignia.v2x.client.model.LdmObject

Class Overview

Represents an LDM Object.

Summary

Nested Classes
enum LdmObject.NotificationType Notification types  
Public Constructors
LdmObject()
Creates a new instance.
Public Methods
double distanceTo(LdmObject other)
Calculates the distance to another LDM object.
boolean equals(Object o)
Intersection findOwnIntersection()
Finds the intersection that corresponds to the object this LDM represents.
IntersectionState findOwnIntersectionState()
Finds the intersection state that corresponds to the object this LDM represents.
List<PrioritizationResponse> getActivePrioritizations()
Returns the list of active prioritizations.
BasicSafetyMessage getBsmObject()
Returns the BSM object associated to this LDMObject.
DENM getDENM()
Returns the associated DENM object.
Date getExpiryTime()
Returns the expiry time.
String getGNAddress()
Returns the Geonetworking address.
Double getHeading(DegreeUnit unit)
Returns the heading in the specified units.
Long getInterfaceID()
Returns the interface identifier.
List<IntersectionState> getIntersectionStates()
Returns the list of intersection states associated with this LDM.
List<Intersection> getIntersections()
Returns the list of intersections associated with this LDM.
IviStructure getIvi()
Returns the IVI structure contained in this LDM object.
String getLLAddress()
Returns the link layer address.
Long getLatitude()
Returns the latitude.
Long getLongitude()
Returns the longitude.
LdmObject.NotificationType getNotificationType()
Returns the notification type of the LDM object.
Long getObjectID()
Returns the object ID.
LdmObjectType getObjectType()
Returns the object type of LDM event.
float getRssiDbm()
Returns the RSSI value
Long getSecurity()
Returns the security profile identifier.
Double getSpeed(SpeedUnit unit)
Returns the speed in the specified unit.
StationObject getStationObject()
Returns the station object associated with this LDM.
Date getTimestamp()
Returns the timestamp.
Long getType()
Returns the type of the LDM object.
int hashCode()
boolean isLocal()
Returns true if LDM is local.
void setActivePrioritizations(List<PrioritizationResponse> activePrioritizations)
Sets the list of active prioritizations.
void setBsmObject(BasicSafetyMessage bsmObject)
Sets the BSM object associated to this LDMObject.
void setDENM(DENM denmEvent)
Sets the associated DENM object.
void setExpiryTime(Date expiryTime)
Sets the expiry time.
void setGNAddress(String gnAddress)
Sets the Geonetworking address.
void setHeading(double heading, DegreeUnit headingUnit)
Sets the heading
void setInterfaceID(Long interfaceID)
Sets the interface identifier of the LDM object.
void setIntersectionStates(List<IntersectionState> intersectionStates)
Sets the list of intersection states associated with this LDM.
void setIntersections(List<Intersection> intersections)
Sets the list of intersections associated with this LDM.
void setIvi(IviStructure ivi)
Sets the IVI structure contained in this LDM object.
void setLLAddress(String llAddress)
Sets the link layer address.
void setLatitude(Long latitude)
Sets the latitude.
void setLocal(boolean local)
Sets whether the LDM object is local.
void setLongitude(Long longitude)
Sets the longitude.
void setNotificationType(LdmObject.NotificationType notificationType)
Sets the notification type of the LDM object.
void setObjectID(Long objectId)
Sets the object ID of the LDM object.
void setObjectType(LdmObjectType objectType)
Sets the object type of the LDM object.
void setRssiDbm(float rssi)
Set the RSSI value
void setSecurity(Long security)
Sets the security profile identifier.
void setSpeed(double speed, SpeedUnit speedUnit)
Sets the speed.
void setStationObject(StationObject stationObject)
Sets the station object associated with this LDM.
void setTimestamp(Date timestamp)
Sets the timestamp
void setType(Long type)
Sets the LDM type.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public LdmObject ()

Creates a new instance.

Public Methods

public double distanceTo (LdmObject other)

Calculates the distance to another LDM object.

Parameters
other other ldm object
Returns
  • distance in meters

public boolean equals (Object o)

public Intersection findOwnIntersection ()

Finds the intersection that corresponds to the object this LDM represents.

Returns
  • intersection or null if not found

public IntersectionState findOwnIntersectionState ()

Finds the intersection state that corresponds to the object this LDM represents.

Returns
  • intersection state or null if not found

public List<PrioritizationResponse> getActivePrioritizations ()

Returns the list of active prioritizations.

Returns
  • list of active prioritizations

public BasicSafetyMessage getBsmObject ()

Returns the BSM object associated to this LDMObject.

Returns
  • bsm object

public DENM getDENM ()

Returns the associated DENM object.

Returns
  • DENM object

public Date getExpiryTime ()

Returns the expiry time.

Returns
  • expiry time

public String getGNAddress ()

Returns the Geonetworking address.

Returns
  • Geonetworking address

public Double getHeading (DegreeUnit unit)

Returns the heading in the specified units.

Parameters
unit target unit
Returns
  • heading in the specified units

public Long getInterfaceID ()

Returns the interface identifier.

Returns
  • interface identifier

public List<IntersectionState> getIntersectionStates ()

Returns the list of intersection states associated with this LDM.

Returns
  • list of intersection states

public List<Intersection> getIntersections ()

Returns the list of intersections associated with this LDM.

Returns
  • list of intersections

public IviStructure getIvi ()

Returns the IVI structure contained in this LDM object.

Returns
  • IVI structure contained in this LDM object

public String getLLAddress ()

Returns the link layer address.

Returns
  • link layer address

public Long getLatitude ()

Returns the latitude.

Returns
  • latitude in 0.1 microdegrees

public Long getLongitude ()

Returns the longitude.

Returns
  • longitude in 0.1 microdegrees

public LdmObject.NotificationType getNotificationType ()

Returns the notification type of the LDM object.

Returns
  • notification type

public Long getObjectID ()

Returns the object ID.

Returns
  • object ID

public LdmObjectType getObjectType ()

Returns the object type of LDM event.

Returns
  • object type of LDM event

public float getRssiDbm ()

Returns the RSSI value

Returns
  • rssi value in dBm

public Long getSecurity ()

Returns the security profile identifier.

Returns
  • security profile identifier

public Double getSpeed (SpeedUnit unit)

Returns the speed in the specified unit.

Parameters
unit target unit
Returns
  • speed in the specified unit.

public StationObject getStationObject ()

Returns the station object associated with this LDM.

Returns
  • station object

public Date getTimestamp ()

Returns the timestamp.

Returns
  • timestamp

public Long getType ()

Returns the type of the LDM object.

Returns
  • type of the LDM object

public int hashCode ()

public boolean isLocal ()

Returns true if LDM is local.

Returns
  • true if LDM is local, false otherwise

public void setActivePrioritizations (List<PrioritizationResponse> activePrioritizations)

Sets the list of active prioritizations.

Parameters
activePrioritizations list of active prioritizations

public void setBsmObject (BasicSafetyMessage bsmObject)

Sets the BSM object associated to this LDMObject.

Parameters
bsmObject bsm object

public void setDENM (DENM denmEvent)

Sets the associated DENM object.

Parameters
denmEvent denm event parameter of the LDM object

public void setExpiryTime (Date expiryTime)

Sets the expiry time.

Parameters
expiryTime expiry time

public void setGNAddress (String gnAddress)

Sets the Geonetworking address.

Parameters
gnAddress Geonetworking adress

public void setHeading (double heading, DegreeUnit headingUnit)

Sets the heading

Parameters
heading heading value
headingUnit heading unit

public void setInterfaceID (Long interfaceID)

Sets the interface identifier of the LDM object.

Parameters
interfaceID interface id

public void setIntersectionStates (List<IntersectionState> intersectionStates)

Sets the list of intersection states associated with this LDM.

Parameters
intersectionStates list of intersections states

public void setIntersections (List<Intersection> intersections)

Sets the list of intersections associated with this LDM.

Parameters
intersections list of intersections

public void setIvi (IviStructure ivi)

Sets the IVI structure contained in this LDM object.

Parameters
ivi IVI structure contained in this LDM object

public void setLLAddress (String llAddress)

Sets the link layer address.

Parameters
llAddress link layer address

public void setLatitude (Long latitude)

Sets the latitude.

Parameters
latitude latitude in 0.1 microdegrees

public void setLocal (boolean local)

Sets whether the LDM object is local.

Parameters
local true if LDM is local, false otherwise

public void setLongitude (Long longitude)

Sets the longitude.

Parameters
longitude longitude in 0.1 microdegrees

public void setNotificationType (LdmObject.NotificationType notificationType)

Sets the notification type of the LDM object.

Parameters
notificationType notification type

public void setObjectID (Long objectId)

Sets the object ID of the LDM object.

Parameters
objectId object ID

public void setObjectType (LdmObjectType objectType)

Sets the object type of the LDM object.

Parameters
objectType object type of the LDM object

public void setRssiDbm (float rssi)

Set the RSSI value

Parameters
rssi rssi value in dBm

public void setSecurity (Long security)

Sets the security profile identifier.

Parameters
security security profile identifier

public void setSpeed (double speed, SpeedUnit speedUnit)

Sets the speed.

Parameters
speed speed value
speedUnit speed unit

public void setStationObject (StationObject stationObject)

Sets the station object associated with this LDM.

Parameters
stationObject station object

public void setTimestamp (Date timestamp)

Sets the timestamp

Parameters
timestamp timestamp

public void setType (Long type)

Sets the LDM type.

Parameters
type type of the LDM object

public String toString ()