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
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.mosaic.lib.objects.v2x.V2xMessage
V2xMessage.Empty -
Constructor Summary
ConstructorsConstructorDescriptionCam(MessageRouting routing, CamContent camContent, long minimalPayloadLength) Creates a newMessageRoutingobject.Cam(MessageRouting routing, Cam cam, long minimalCamLength) -
Method Summary
Methods inherited from class org.eclipse.mosaic.lib.objects.v2x.V2xMessage
equals, getId, getRouting, getSequenceNumber, getSimpleClassName, hashCode, setSequenceNumber, toString
-
Constructor Details
-
Cam
Creates a newMessageRoutingobject.- Parameters:
routing- Message to be routed.camContent- Content of a CAM Message.
-
Cam
-
-
Method Details
-
getPayload
Description copied from class:V2xMessageReturns theEncodedPayload.- Specified by:
getPayloadin classV2xMessage- Returns:
- the
EncodedPayloadof this message
-
getGenerationTime
public long getGenerationTime() -
getUnitID
-
getPosition
-
getUserTaggedValue
@Nullable public byte[] getUserTaggedValue() -
getAwarenessData
-