Package edu.nps.moves.dis7
Class MinefieldDataPdu
java.lang.Object
edu.nps.moves.dis7.Pdu
edu.nps.moves.dis7.PduBase
edu.nps.moves.dis7.MinefieldFamilyPdu
edu.nps.moves.dis7.MinefieldDataPdu
- All Implemented Interfaces:
edu.nps.moves.dis7.Marshaller,java.io.Serializable
public class MinefieldDataPdu extends MinefieldFamilyPdu implements java.io.Serializable
5.10.4 Information about the location and status of a collection of mines in a minefield is conveyed through the Minefield Data PDU on an individual mine basis.
IEEE Std 1278.1-2012, IEEE Standard for Distributed Interactive Simulation—Application Protocols
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected DataFilterRecorddataFilter32 boolean fieldprotected java.util.List<MinefieldDataFusing>fusinguid 192protected float[]groundBurialDepthOffsetprotected java.util.List<MineEmplacementTime>mineEmplacementTimeprotected short[]mineEntityNumberprotected MinefieldIdentifierminefieldIDMinefield IDprotected shortminefieldSequenceNumbeerMinefield sequence numberprotected java.util.List<Vector3Float>mineLocationMine locationsprotected java.util.List<EulerAngles>mineOrientationprotected EntityTypemineTypeMine typeprotected bytenumberOfMinesInThisPduhow many mines are in this PDUprotected bytenumberOfPdusnumber of pdus in responseprotected bytenumberOfSensorTypeshow many sensor type are in this PDUprotected byte[]numberOfTripDetonationWiresprotected byte[]numberOfVerticesprotected bytepaddingpaddingprotected java.util.List<MinefieldDataPaintScheme>paintSchemeuid 202protected bytepduSequenceNumberpdu sequence numberprotected float[]reflectanceprotected byterequestIDrequest IDprotected SimulationIdentifierrequestingEntityIDID of entity making requestprotected byte[]scalarDetectionCoefficientprotected java.util.List<MinefieldSensorType>sensorTypesSensor types, each 16 bits longprotected float[]snowBurialDepthOffsetprotected float[]thermalContrastprotected float[]waterBurialDepthOffsetFields inherited from class edu.nps.moves.dis7.Pdu
exerciseID, length, pduType, protocolFamily, protocolVersion, timestamp -
Constructor Summary
Constructors Constructor Description MinefieldDataPdu()Constructor -
Method Summary
Methods inherited from class edu.nps.moves.dis7.Pdu
getExerciseID, getLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, marshal, setExerciseID, setLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp
-
Field Details
-
minefieldID
Minefield ID -
requestingEntityID
ID of entity making request -
minefieldSequenceNumbeer
protected short minefieldSequenceNumbeerMinefield sequence number -
requestID
protected byte requestIDrequest ID -
pduSequenceNumber
protected byte pduSequenceNumberpdu sequence number -
numberOfPdus
protected byte numberOfPdusnumber of pdus in response -
numberOfMinesInThisPdu
protected byte numberOfMinesInThisPduhow many mines are in this PDU -
numberOfSensorTypes
protected byte numberOfSensorTypeshow many sensor type are in this PDU -
padding
protected byte paddingpadding -
dataFilter
32 boolean field -
mineType
Mine type -
sensorTypes
Sensor types, each 16 bits long -
mineLocation
Mine locations -
groundBurialDepthOffset
protected float[] groundBurialDepthOffset -
waterBurialDepthOffset
protected float[] waterBurialDepthOffset -
snowBurialDepthOffset
protected float[] snowBurialDepthOffset -
mineOrientation
-
thermalContrast
protected float[] thermalContrast -
reflectance
protected float[] reflectance -
mineEmplacementTime
-
mineEntityNumber
protected short[] mineEntityNumber -
fusing
uid 192 -
scalarDetectionCoefficient
protected byte[] scalarDetectionCoefficient -
paintScheme
uid 202 -
numberOfTripDetonationWires
protected byte[] numberOfTripDetonationWires -
numberOfVertices
protected byte[] numberOfVertices
-
-
Constructor Details
-
MinefieldDataPdu
public MinefieldDataPdu()Constructor
-
-
Method Details
-
getMarshalledSize
public int getMarshalledSize()Returns the size of this serialized object in bytes- Specified by:
getMarshalledSizein interfaceedu.nps.moves.dis7.Marshaller- Overrides:
getMarshalledSizein classMinefieldFamilyPdu
-
setMinefieldID
Setter forminefieldID -
getMinefieldID
Getter forminefieldID -
setRequestingEntityID
Setter forrequestingEntityID -
getRequestingEntityID
Getter forrequestingEntityID -
setMinefieldSequenceNumbeer
Setter forminefieldSequenceNumbeer -
getMinefieldSequenceNumbeer
public short getMinefieldSequenceNumbeer()Getter forminefieldSequenceNumbeer -
setRequestID
Setter forrequestID -
getRequestID
public byte getRequestID()Getter forrequestID -
setPduSequenceNumber
Setter forpduSequenceNumber -
getPduSequenceNumber
public byte getPduSequenceNumber()Getter forpduSequenceNumber -
setNumberOfPdus
Setter fornumberOfPdus -
getNumberOfPdus
public byte getNumberOfPdus()Getter fornumberOfPdus -
setPadding
Setter forpadding- Overrides:
setPaddingin classPduBase
-
getPadding
public byte getPadding()Getter forpadding- Overrides:
getPaddingin classPduBase
-
setDataFilter
Setter fordataFilter -
getDataFilter
Getter fordataFilter -
setMineType
Setter formineType -
getMineType
Getter formineType -
setSensorTypes
Setter forsensorTypes -
getSensorTypes
Getter forsensorTypes -
setMineLocation
Setter formineLocation -
getMineLocation
Getter formineLocation -
setGroundBurialDepthOffset
Setter forgroundBurialDepthOffset -
getGroundBurialDepthOffset
public float[] getGroundBurialDepthOffset()Getter forgroundBurialDepthOffset -
setWaterBurialDepthOffset
Setter forwaterBurialDepthOffset -
getWaterBurialDepthOffset
public float[] getWaterBurialDepthOffset()Getter forwaterBurialDepthOffset -
setSnowBurialDepthOffset
Setter forsnowBurialDepthOffset -
getSnowBurialDepthOffset
public float[] getSnowBurialDepthOffset()Getter forsnowBurialDepthOffset -
setMineOrientation
Setter formineOrientation -
getMineOrientation
Getter formineOrientation -
setThermalContrast
Setter forthermalContrast -
getThermalContrast
public float[] getThermalContrast()Getter forthermalContrast -
setReflectance
Setter forreflectance -
getReflectance
public float[] getReflectance()Getter forreflectance -
setMineEmplacementTime
public MinefieldDataPdu setMineEmplacementTime(java.util.List<MineEmplacementTime> pMineEmplacementTime)Setter formineEmplacementTime -
getMineEmplacementTime
Getter formineEmplacementTime -
setMineEntityNumber
Setter formineEntityNumber -
getMineEntityNumber
public short[] getMineEntityNumber()Getter formineEntityNumber -
setFusing
Setter forfusing -
getFusing
Getter forfusing -
setScalarDetectionCoefficient
Setter forscalarDetectionCoefficient -
getScalarDetectionCoefficient
public byte[] getScalarDetectionCoefficient()Getter forscalarDetectionCoefficient -
setPaintScheme
Setter forpaintScheme -
getPaintScheme
Getter forpaintScheme -
setNumberOfTripDetonationWires
Setter fornumberOfTripDetonationWires -
getNumberOfTripDetonationWires
public byte[] getNumberOfTripDetonationWires()Getter fornumberOfTripDetonationWires -
setNumberOfVertices
Setter fornumberOfVertices -
getNumberOfVertices
public byte[] getNumberOfVertices()Getter fornumberOfVertices -
marshal
public void marshal(java.io.DataOutputStream dos) throws java.lang.ExceptionSerializes an object to a DataOutputStream.- Specified by:
marshalin interfaceedu.nps.moves.dis7.Marshaller- Overrides:
marshalin classMinefieldFamilyPdu- Parameters:
dos- the OutputStream- Throws:
java.lang.Exception- if something goes wrong- See Also:
DataOutputStream
-
unmarshal
public int unmarshal(java.io.DataInputStream dis) throws java.lang.ExceptionUnserializes an object from a DataInputStream.- Specified by:
unmarshalin interfaceedu.nps.moves.dis7.Marshaller- Overrides:
unmarshalin classMinefieldFamilyPdu- Parameters:
dis- the InputStream- Returns:
- unmarshalled size
- Throws:
java.lang.Exception- if something goes wrong- See Also:
DataInputStream
-
marshal
public void marshal(java.nio.ByteBuffer buff) throws java.lang.ExceptionPacks an object into the ByteBuffer.- Specified by:
marshalin interfaceedu.nps.moves.dis7.Marshaller- Overrides:
marshalin classMinefieldFamilyPdu- Parameters:
buff- The ByteBuffer at the position to begin writing- Throws:
java.nio.BufferOverflowException- if buff is too smalljava.nio.ReadOnlyBufferException- if buff is read onlyjava.lang.Exception- ByteBuffer-generated exception- See Also:
ByteBuffer
-
unmarshal
public int unmarshal(java.nio.ByteBuffer buff) throws java.lang.ExceptionUnpacks a Pdu from the underlying data.- Specified by:
unmarshalin interfaceedu.nps.moves.dis7.Marshaller- Overrides:
unmarshalin classMinefieldFamilyPdu- Parameters:
buff- The ByteBuffer at the position to begin reading- Returns:
- marshalled size
- Throws:
java.nio.BufferUnderflowException- if buff is too smalljava.lang.Exception- ByteBuffer-generated exception- See Also:
ByteBuffer
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classMinefieldFamilyPdu
-
equalsImpl
public boolean equalsImpl(java.lang.Object obj)Description copied from class:PduCompare all fields that contribute to the state, ignoring transient and static fields, forthisand the supplied object- Overrides:
equalsImplin classMinefieldFamilyPdu- Parameters:
obj- the object to compare to- Returns:
- true if the objects are equal, false otherwise.
-
toString
public java.lang.String toString()- Overrides:
toStringin classMinefieldFamilyPdu
-