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 newCamContentobject.CamContent(DataInput dIn) -
Method Summary
Modifier and TypeMethodDescriptionlongbyte[]voidtoDataOutput(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 newCamContentobject.- 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:ToDataOutputWrite this object to aDataOutput.- Specified by:
toDataOutputin interfaceToDataOutput- Parameters:
dataOutput- theDataOutput.- Throws:
IOException
-
getGenerationTime
public long getGenerationTime() -
getUnitId
-
getPosition
-
getAwarenessData
-
getUserTaggedValue
public byte[] getUserTaggedValue()
-