Class DirectedEnergyPrecisionAimpoint
java.lang.Object
edu.nps.moves.dis7.pdus.DirectedEnergyPrecisionAimpoint
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected float
Beam Spot Cross Section Orientation Angle.protected float
Beam Spot Cross Section Semi-Major Axis.protected float
Beam Spot Cross Section Semi-Major Axis.protected DEPrecisionAimpointBeamSpotType
Spot Shape ENUM. uid 311protected short
zero-filled array of padding bits for byte alignment and consistent sizing of PDU dataprotected int
paddingprotected float
Peak irradianceprotected short
Length of Recordprotected int
Type of Recordprotected byte
Target Component ID ENUM, same as in DamageDescriptionRecord.protected EntityID
Unique ID of the target entity.protected Vector3Float
Acceleration (meters/sec/sec) of Target Spot.protected Vector3Float
Position (meters) of Target Spot relative to Entity Position.protected Vector3Double
Position of Target Spot in World Coordinates.protected Vector3Float
Velocity (meters/sec) of Target Spot. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor creates and configures a new instance object -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
equalsImpl
(Object obj) Compare all fields that contribute to the state, ignoring transient and static fields, forthis
and the supplied objectfloat
Getter forbeamSpotCrossSectionOrientationAngle
float
Getter forbeamSpotCrossSectionSemiMajorAxis
float
Getter forbeamSpotCrossSectionSemiMinorAxis
Getter forbeamSpotType
int
Returns size of this serialized (marshalled) object in bytesshort
Getter forpadding
int
Getter forpadding2
float
Getter forpeakIrradiance
short
Getter forrecordLength
int
Getter forrecordType
byte
Getter fortargetComponentID
Getter fortargetEntityID
Getter fortargetSpotAcceleration
Getter fortargetSpotEntityLocation
Getter fortargetSpotLocation
Getter fortargetSpotVelocity
int
hashCode()
void
marshal
(DataOutputStream dos) Serializes an object to a DataOutputStream.void
marshal
(ByteBuffer byteBuffer) Packs an object into the ByteBuffer.setBeamSpotCrossSectionOrientationAngle
(float pBeamSpotCrossSectionOrientationAngle) Setter forbeamSpotCrossSectionOrientationAngle
setBeamSpotCrossSectionSemiMajorAxis
(float pBeamSpotCrossSectionSemiMajorAxis) Setter forbeamSpotCrossSectionSemiMajorAxis
setBeamSpotCrossSectionSemiMinorAxis
(float pBeamSpotCrossSectionSemiMinorAxis) Setter forbeamSpotCrossSectionSemiMinorAxis
setBeamSpotType
(DEPrecisionAimpointBeamSpotType pBeamSpotType) Setter forbeamSpotType
setPadding
(int pPadding) Utility setter forpadding
setPadding
(short pPadding) Setter forpadding
setPadding2
(int pPadding2) Setter forpadding2
setPeakIrradiance
(float pPeakIrradiance) Setter forpeakIrradiance
setRecordLength
(int pRecordLength) Utility setter forrecordLength
setRecordLength
(short pRecordLength) Setter forrecordLength
setRecordType
(int pRecordType) Setter forrecordType
setTargetComponentID
(byte pTargetComponentID) Setter fortargetComponentID
setTargetComponentID
(int pTargetComponentID) Utility setter fortargetComponentID
setTargetEntityID
(EntityID pTargetEntityID) Setter fortargetEntityID
setTargetSpotAcceleration
(Vector3Float pTargetSpotAcceleration) Setter fortargetSpotAcceleration
setTargetSpotEntityLocation
(Vector3Float pTargetSpotEntityLocation) Setter fortargetSpotEntityLocation
setTargetSpotLocation
(Vector3Double pTargetSpotLocation) Setter fortargetSpotLocation
setTargetSpotVelocity
(Vector3Float pTargetSpotVelocity) Setter fortargetSpotVelocity
toString()
int
unmarshal
(DataInputStream dis) Deserializes an object from a DataInputStream.int
unmarshal
(ByteBuffer byteBuffer) Unpacks a Pdu from the underlying data.
-
Field Details
-
recordType
protected int recordTypeType of Record -
recordLength
protected short recordLengthLength of Record -
padding
protected short paddingzero-filled array of padding bits for byte alignment and consistent sizing of PDU data -
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 creates and configures a new instance object
-
-
Method Details
-
getMarshalledSize
public int getMarshalledSize()Returns size of this serialized (marshalled) object in bytes- Returns:
- serialized size in bytes
- See Also:
-
setRecordType
Setter forrecordType
- Parameters:
pRecordType
- new value of interest- Returns:
- same object to permit progressive setters
-
getRecordType
-
setRecordLength
Setter forrecordLength
- Parameters:
pRecordLength
- new value of interest- Returns:
- same object to permit progressive setters
-
setRecordLength
Utility setter forrecordLength
- Parameters:
pRecordLength
- new value of interest- Returns:
- same object to permit progressive setters
-
getRecordLength
-
setPadding
Setter forpadding
- Parameters:
pPadding
- new value of interest- Returns:
- same object to permit progressive setters
-
setPadding
Utility setter forpadding
- Parameters:
pPadding
- new value of interest- Returns:
- same object to permit progressive setters
-
getPadding
-
setTargetSpotLocation
Setter fortargetSpotLocation
- Parameters:
pTargetSpotLocation
- new value of interest- Returns:
- same object to permit progressive setters
-
getTargetSpotLocation
Getter fortargetSpotLocation
- Returns:
- value of interest
-
setTargetSpotEntityLocation
public DirectedEnergyPrecisionAimpoint setTargetSpotEntityLocation(Vector3Float pTargetSpotEntityLocation) Setter fortargetSpotEntityLocation
- Parameters:
pTargetSpotEntityLocation
- new value of interest- Returns:
- same object to permit progressive setters
-
getTargetSpotEntityLocation
Getter fortargetSpotEntityLocation
- Returns:
- value of interest
-
setTargetSpotVelocity
Setter fortargetSpotVelocity
- Parameters:
pTargetSpotVelocity
- new value of interest- Returns:
- same object to permit progressive setters
-
getTargetSpotVelocity
Getter fortargetSpotVelocity
- Returns:
- value of interest
-
setTargetSpotAcceleration
public DirectedEnergyPrecisionAimpoint setTargetSpotAcceleration(Vector3Float pTargetSpotAcceleration) Setter fortargetSpotAcceleration
- Parameters:
pTargetSpotAcceleration
- new value of interest- Returns:
- same object to permit progressive setters
-
getTargetSpotAcceleration
Getter fortargetSpotAcceleration
- Returns:
- value of interest
-
setTargetEntityID
Setter fortargetEntityID
- Parameters:
pTargetEntityID
- new value of interest- Returns:
- same object to permit progressive setters
-
getTargetEntityID
-
setTargetComponentID
Setter fortargetComponentID
- Parameters:
pTargetComponentID
- new value of interest- Returns:
- same object to permit progressive setters
-
setTargetComponentID
Utility setter fortargetComponentID
- Parameters:
pTargetComponentID
- new value of interest- Returns:
- same object to permit progressive setters
-
getTargetComponentID
-
setBeamSpotType
public DirectedEnergyPrecisionAimpoint setBeamSpotType(DEPrecisionAimpointBeamSpotType pBeamSpotType) Setter forbeamSpotType
- Parameters:
pBeamSpotType
- new value of interest- Returns:
- same object to permit progressive setters
-
getBeamSpotType
Getter forbeamSpotType
- Returns:
- value of interest
-
setBeamSpotCrossSectionSemiMajorAxis
public DirectedEnergyPrecisionAimpoint setBeamSpotCrossSectionSemiMajorAxis(float pBeamSpotCrossSectionSemiMajorAxis) Setter forbeamSpotCrossSectionSemiMajorAxis
- Parameters:
pBeamSpotCrossSectionSemiMajorAxis
- new value of interest- Returns:
- same object to permit progressive setters
-
getBeamSpotCrossSectionSemiMajorAxis
public float getBeamSpotCrossSectionSemiMajorAxis()Getter forbeamSpotCrossSectionSemiMajorAxis
- Returns:
- value of interest
-
setBeamSpotCrossSectionSemiMinorAxis
public DirectedEnergyPrecisionAimpoint setBeamSpotCrossSectionSemiMinorAxis(float pBeamSpotCrossSectionSemiMinorAxis) Setter forbeamSpotCrossSectionSemiMinorAxis
- Parameters:
pBeamSpotCrossSectionSemiMinorAxis
- new value of interest- Returns:
- same object to permit progressive setters
-
getBeamSpotCrossSectionSemiMinorAxis
public float getBeamSpotCrossSectionSemiMinorAxis()Getter forbeamSpotCrossSectionSemiMinorAxis
- Returns:
- value of interest
-
setBeamSpotCrossSectionOrientationAngle
public DirectedEnergyPrecisionAimpoint setBeamSpotCrossSectionOrientationAngle(float pBeamSpotCrossSectionOrientationAngle) Setter forbeamSpotCrossSectionOrientationAngle
- Parameters:
pBeamSpotCrossSectionOrientationAngle
- new value of interest- Returns:
- same object to permit progressive setters
-
getBeamSpotCrossSectionOrientationAngle
public float getBeamSpotCrossSectionOrientationAngle()Getter forbeamSpotCrossSectionOrientationAngle
- Returns:
- value of interest
-
setPeakIrradiance
Setter forpeakIrradiance
- Parameters:
pPeakIrradiance
- new value of interest- Returns:
- same object to permit progressive setters
-
getPeakIrradiance
-
setPadding2
Setter forpadding2
- Parameters:
pPadding2
- new value of interest- Returns:
- same object to permit progressive setters
-
getPadding2
-
marshal
Serializes an object to a DataOutputStream.- Parameters:
dos
- the OutputStream- Throws:
Exception
- if something goes wrong- See Also:
-
unmarshal
Deserializes an object from a DataInputStream.- Parameters:
dis
- the InputStream- Returns:
- marshalled serialized size in bytes
- Throws:
Exception
- if something goes wrong- See Also:
-
marshal
Packs an object into the ByteBuffer.- Parameters:
byteBuffer
- The ByteBuffer at the position to begin writing- Throws:
BufferOverflowException
- if byteBuffer is too smallReadOnlyBufferException
- if byteBuffer is read onlyException
- ByteBuffer-generated exception- See Also:
-
unmarshal
Unpacks a Pdu from the underlying data.- Parameters:
byteBuffer
- The ByteBuffer at the position to begin reading- Returns:
- marshalled serialized size in bytes
- Throws:
BufferUnderflowException
- if byteBuffer is too smallException
- ByteBuffer-generated exception- See Also:
-
equals
-
equalsImpl
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
-
hashCode
-