Class CamContent
java.lang.Object
org.eclipse.mosaic.lib.objects.v2x.etsi.CamContent
- All Implemented Interfaces:
Serializable
,ToDataOutput
Contains specific CAM data
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCamContent
(long generationTime, AwarenessData awarenessData, String unitID, GeoPoint position, byte[] userTaggedValue) Creates a newCamContent
object.CamContent
(DataInput dIn) -
Method Summary
Modifier and TypeMethodDescriptionlong
byte[]
void
toDataOutput
(DataOutput dataOutput) Write this object to aDataOutput
.
-
Constructor Details
-
CamContent
public CamContent(long generationTime, @Nonnull AwarenessData awarenessData, @Nonnull String unitID, GeoPoint position, byte[] userTaggedValue) Creates a newCamContent
object.- Parameters:
generationTime
- the simulation time in ns the CAM was created.awarenessData
- the high-frequency data container of this CAM.unitID
- the Id of the unit which created this CAM.position
- the position at which this CAM has been createduserTaggedValue
- custom data to transmit with this CAM
-
CamContent
- Throws:
IOException
-
-
Method Details
-
toDataOutput
Description copied from interface:ToDataOutput
Write this object to aDataOutput
.- Specified by:
toDataOutput
in interfaceToDataOutput
- Parameters:
dataOutput
- theDataOutput
.- Throws:
IOException
-
getGenerationTime
public long getGenerationTime() -
getUnitId
-
getPosition
-
getAwarenessData
-
getUserTaggedValue
public byte[] getUserTaggedValue()
-