Package edu.nps.moves.dis7
Class DirectedEnergyPrecisionAimpoint
java.lang.Object
edu.nps.moves.dis7.DirectedEnergyPrecisionAimpoint
- All Implemented Interfaces:
java.io.Serializable
public class DirectedEnergyPrecisionAimpoint
extends java.lang.Object
implements java.io.Serializable
DE Precision Aimpoint Record. Section 6.2.20.3
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 float
beamSpotCrossSectionOrientationAngle
Beam Spot Cross Section Orientation Angle.protected float
beamSpotCrossSectionSemiMajorAxis
Beam Spot Cross Section Semi-Major Axis.protected float
beamSpotCrossSectionSemiMinorAxis
Beam Spot Cross Section Semi-Major Axis.protected DEPrecisionAimpointBeamSpotType
beamSpotType
Spot Shape ENUM.protected short
padding
Paddingprotected int
padding2
paddingprotected float
peakIrradiance
Peak irradianceprotected short
recordLength
Length of Recordprotected int
recordType
Type of Recordprotected byte
targetComponentID
Target Component ID ENUM, same as in DamageDescriptionRecord.protected EntityID
targetEntityID
Unique ID of the target entity.protected Vector3Float
targetSpotAcceleration
Acceleration (meters/sec/sec) of Target Spot.protected Vector3Float
targetSpotEntityLocation
Position (meters) of Target Spot relative to Entity Position.protected Vector3Double
targetSpotLocation
Position of Target Spot in World Coordinates.protected Vector3Float
targetSpotVelocity
Velocity (meters/sec) of Target Spot. -
Constructor Summary
Constructors Constructor Description DirectedEnergyPrecisionAimpoint()
Constructor -
Method Summary
-
Field Details
-
recordType
protected int recordTypeType of Record -
recordLength
protected short recordLengthLength of Record -
padding
protected short paddingPadding -
targetSpotLocation
Position of Target Spot in World Coordinates. -
targetSpotEntityLocation
Position (meters) of Target Spot relative to Entity Position. -
targetSpotVelocity
Velocity (meters/sec) of Target Spot. -
targetSpotAcceleration
Acceleration (meters/sec/sec) of Target Spot. -
targetEntityID
Unique ID of the target entity. -
targetComponentID
protected byte targetComponentIDTarget Component ID ENUM, same as in DamageDescriptionRecord. -
beamSpotType
Spot Shape ENUM. uid 311 -
beamSpotCrossSectionSemiMajorAxis
protected float beamSpotCrossSectionSemiMajorAxisBeam Spot Cross Section Semi-Major Axis. -
beamSpotCrossSectionSemiMinorAxis
protected float beamSpotCrossSectionSemiMinorAxisBeam Spot Cross Section Semi-Major Axis. -
beamSpotCrossSectionOrientationAngle
protected float beamSpotCrossSectionOrientationAngleBeam Spot Cross Section Orientation Angle. -
peakIrradiance
protected float peakIrradiancePeak irradiance -
padding2
protected int padding2padding
-
-
Constructor Details
-
DirectedEnergyPrecisionAimpoint
public DirectedEnergyPrecisionAimpoint()Constructor
-
-
Method Details
-
getMarshalledSize
public int getMarshalledSize()Returns the size of this serialized object in bytes -
setRecordType
Setter forrecordType
-
getRecordType
public int getRecordType()Getter forrecordType
-
setRecordLength
Setter forrecordLength
-
getRecordLength
public short getRecordLength()Getter forrecordLength
-
setPadding
Setter forpadding
-
getPadding
public short getPadding()Getter forpadding
-
setTargetSpotLocation
Setter fortargetSpotLocation
-
getTargetSpotLocation
Getter fortargetSpotLocation
-
setTargetSpotEntityLocation
public DirectedEnergyPrecisionAimpoint setTargetSpotEntityLocation(Vector3Float pTargetSpotEntityLocation)Setter fortargetSpotEntityLocation
-
getTargetSpotEntityLocation
Getter fortargetSpotEntityLocation
-
setTargetSpotVelocity
Setter fortargetSpotVelocity
-
getTargetSpotVelocity
Getter fortargetSpotVelocity
-
setTargetSpotAcceleration
public DirectedEnergyPrecisionAimpoint setTargetSpotAcceleration(Vector3Float pTargetSpotAcceleration)Setter fortargetSpotAcceleration
-
getTargetSpotAcceleration
Getter fortargetSpotAcceleration
-
setTargetEntityID
Setter fortargetEntityID
-
getTargetEntityID
Getter fortargetEntityID
-
setTargetComponentID
Setter fortargetComponentID
-
getTargetComponentID
public byte getTargetComponentID()Getter fortargetComponentID
-
setBeamSpotType
public DirectedEnergyPrecisionAimpoint setBeamSpotType(DEPrecisionAimpointBeamSpotType pBeamSpotType)Setter forbeamSpotType
-
getBeamSpotType
Getter forbeamSpotType
-
setBeamSpotCrossSectionSemiMajorAxis
public DirectedEnergyPrecisionAimpoint setBeamSpotCrossSectionSemiMajorAxis(float pBeamSpotCrossSectionSemiMajorAxis)Setter forbeamSpotCrossSectionSemiMajorAxis
-
getBeamSpotCrossSectionSemiMajorAxis
public float getBeamSpotCrossSectionSemiMajorAxis()Getter forbeamSpotCrossSectionSemiMajorAxis
-
setBeamSpotCrossSectionSemiMinorAxis
public DirectedEnergyPrecisionAimpoint setBeamSpotCrossSectionSemiMinorAxis(float pBeamSpotCrossSectionSemiMinorAxis)Setter forbeamSpotCrossSectionSemiMinorAxis
-
getBeamSpotCrossSectionSemiMinorAxis
public float getBeamSpotCrossSectionSemiMinorAxis()Getter forbeamSpotCrossSectionSemiMinorAxis
-
setBeamSpotCrossSectionOrientationAngle
public DirectedEnergyPrecisionAimpoint setBeamSpotCrossSectionOrientationAngle(float pBeamSpotCrossSectionOrientationAngle)Setter forbeamSpotCrossSectionOrientationAngle
-
getBeamSpotCrossSectionOrientationAngle
public float getBeamSpotCrossSectionOrientationAngle()Getter forbeamSpotCrossSectionOrientationAngle
-
setPeakIrradiance
Setter forpeakIrradiance
-
getPeakIrradiance
public float getPeakIrradiance()Getter forpeakIrradiance
-
setPadding2
Setter forpadding2
-
getPadding2
public int getPadding2()Getter forpadding2
-
marshal
public void marshal(java.io.DataOutputStream dos) throws java.lang.ExceptionSerializes an object to a DataOutputStream.- 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.- 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.- 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.- 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 classjava.lang.Object
-
equalsImpl
public boolean equalsImpl(java.lang.Object obj)Compare all fields that contribute to the state, ignoring transient and static fields, forthis
and the supplied object- 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 classjava.lang.Object
-