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 DataFilterRecord
dataFilter
32 boolean fieldprotected java.util.List<MinefieldDataFusing>
fusing
uid 192protected float[]
groundBurialDepthOffset
protected java.util.List<MineEmplacementTime>
mineEmplacementTime
protected short[]
mineEntityNumber
protected MinefieldIdentifier
minefieldID
Minefield IDprotected short
minefieldSequenceNumbeer
Minefield sequence numberprotected java.util.List<Vector3Float>
mineLocation
Mine locationsprotected java.util.List<EulerAngles>
mineOrientation
protected EntityType
mineType
Mine typeprotected byte
numberOfMinesInThisPdu
how many mines are in this PDUprotected byte
numberOfPdus
number of pdus in responseprotected byte
numberOfSensorTypes
how many sensor type are in this PDUprotected byte[]
numberOfTripDetonationWires
protected byte[]
numberOfVertices
protected byte
padding
paddingprotected java.util.List<MinefieldDataPaintScheme>
paintScheme
uid 202protected byte
pduSequenceNumber
pdu sequence numberprotected float[]
reflectance
protected byte
requestID
request IDprotected SimulationIdentifier
requestingEntityID
ID of entity making requestprotected byte[]
scalarDetectionCoefficient
protected java.util.List<MinefieldSensorType>
sensorTypes
Sensor types, each 16 bits longprotected float[]
snowBurialDepthOffset
protected float[]
thermalContrast
protected float[]
waterBurialDepthOffset
Fields 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:
getMarshalledSize
in interfaceedu.nps.moves.dis7.Marshaller
- Overrides:
getMarshalledSize
in 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:
setPadding
in classPduBase
-
getPadding
public byte getPadding()Getter forpadding
- Overrides:
getPadding
in 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:
marshal
in interfaceedu.nps.moves.dis7.Marshaller
- Overrides:
marshal
in 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:
unmarshal
in interfaceedu.nps.moves.dis7.Marshaller
- Overrides:
unmarshal
in 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:
marshal
in interfaceedu.nps.moves.dis7.Marshaller
- Overrides:
marshal
in 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:
unmarshal
in interfaceedu.nps.moves.dis7.Marshaller
- Overrides:
unmarshal
in 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:
equals
in classMinefieldFamilyPdu
-
equalsImpl
public boolean equalsImpl(java.lang.Object obj)Description copied from class:Pdu
Compare all fields that contribute to the state, ignoring transient and static fields, forthis
and the supplied object- Overrides:
equalsImpl
in classMinefieldFamilyPdu
- Parameters:
obj
- the object to compare to- Returns:
- true if the objects are equal, false otherwise.
-
toString
public java.lang.String toString()- Overrides:
toString
in classMinefieldFamilyPdu
-