Class Cam
- java.lang.Object
-
- org.eclipse.mosaic.lib.objects.v2x.V2xMessage
-
- org.eclipse.mosaic.lib.objects.v2x.etsi.Cam
-
- All Implemented Interfaces:
Serializable
,Identifiable
@Immutable public class Cam extends V2xMessage
Cooperative Awareness Message (CAM) are status information messages about the traffic flow that is shared between simulation entities (vehicles, roadside units (RSU) or traffic control centre).- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.mosaic.lib.objects.v2x.V2xMessage
V2xMessage.Empty
-
-
Constructor Summary
Constructors Constructor Description Cam(MessageRouting routing, CamContent camContent, long minimalPayloadLength)
Creates a newMessageRouting
object.Cam(MessageRouting routing, Cam cam, long minimalCamLength)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AwarenessData
getAwarenessData()
long
getGenerationTime()
EncodedPayload
getPayload()
Returns theEncodedPayload
.GeoPoint
getPosition()
String
getUnitID()
byte[]
getUserTaggedValue()
-
Methods inherited from class org.eclipse.mosaic.lib.objects.v2x.V2xMessage
equals, getId, getRouting, getSequenceNumber, getSimpleClassName, hashCode, setSequenceNumber, toString
-
-
-
-
Constructor Detail
-
Cam
public Cam(MessageRouting routing, CamContent camContent, long minimalPayloadLength)
Creates a newMessageRouting
object.- Parameters:
routing
- Message to be routed.camContent
- Content of a CAM Message.
-
Cam
public Cam(MessageRouting routing, Cam cam, long minimalCamLength)
-
-
Method Detail
-
getPayload
@Nonnull public EncodedPayload getPayload()
Description copied from class:V2xMessage
Returns theEncodedPayload
.- Specified by:
getPayload
in classV2xMessage
- Returns:
- the
EncodedPayload
of this message
-
getGenerationTime
public long getGenerationTime()
-
getUnitID
public String getUnitID()
-
getPosition
public GeoPoint getPosition()
-
getUserTaggedValue
@Nullable public byte[] getUserTaggedValue()
-
getAwarenessData
public AwarenessData getAwarenessData()
-
-