Class CamContent
- java.lang.Object
-
- org.eclipse.mosaic.lib.objects.v2x.etsi.CamContent
-
- All Implemented Interfaces:
Serializable
,ToDataOutput
public class CamContent extends Object implements ToDataOutput, Serializable
Contains specific CAM data- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CamContent(long generationTime, AwarenessData awarenessData, String unitID, GeoPoint position, byte[] userTaggedValue)
Creates a newCamContent
object.CamContent(DataInput dIn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AwarenessData
getAwarenessData()
long
getGenerationTime()
GeoPoint
getPosition()
String
getUnitId()
byte[]
getUserTaggedValue()
void
toDataOutput(DataOutput dataOutput)
Write this object to aDataOutput
.
-
-
-
Constructor Detail
-
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
public CamContent(DataInput dIn) throws IOException
- Throws:
IOException
-
-
Method Detail
-
toDataOutput
public void toDataOutput(DataOutput dataOutput) throws IOException
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
public String getUnitId()
-
getPosition
public GeoPoint getPosition()
-
getAwarenessData
public AwarenessData getAwarenessData()
-
getUserTaggedValue
public byte[] getUserTaggedValue()
-
-