Package edu.nps.moves.dis7.pdus
Class DirectedEnergyPrecisionAimpoint
java.lang.Object
edu.nps.moves.dis7.pdus.DirectedEnergyPrecisionAimpoint
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected floatBeam Spot Cross Section Orientation Angle.protected floatBeam Spot Cross Section Semi-Major Axis.protected floatBeam Spot Cross Section Semi-Major Axis.protected DEPrecisionAimpointBeamSpotTypeSpot Shape ENUM. uid 311protected shortzero-filled array of padding bits for byte alignment and consistent sizing of PDU dataprotected intpaddingprotected floatPeak irradianceprotected shortLength of Recordprotected intType of Recordprotected byteTarget Component ID ENUM, same as in DamageDescriptionRecord.protected EntityIDUnique ID of the target entity.protected Vector3FloatAcceleration (meters/sec/sec) of Target Spot.protected Vector3FloatPosition (meters) of Target Spot relative to Entity Position.protected Vector3DoublePosition of Target Spot in World Coordinates.protected Vector3FloatVelocity (meters/sec) of Target Spot. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor creates and configures a new instance object -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanequalsImpl(Object obj) Compare all fields that contribute to the state, ignoring transient and static fields, forthisand the supplied objectfloatGetter forbeamSpotCrossSectionOrientationAnglefloatGetter forbeamSpotCrossSectionSemiMajorAxisfloatGetter forbeamSpotCrossSectionSemiMinorAxisGetter forbeamSpotTypeintReturns size of this serialized (marshalled) object in bytesshortGetter forpaddingintGetter forpadding2floatGetter forpeakIrradianceshortGetter forrecordLengthintGetter forrecordTypebyteGetter fortargetComponentIDGetter fortargetEntityIDGetter fortargetSpotAccelerationGetter fortargetSpotEntityLocationGetter fortargetSpotLocationGetter fortargetSpotVelocityinthashCode()voidmarshal(DataOutputStream dos) Serializes an object to a DataOutputStream.voidmarshal(ByteBuffer byteBuffer) Packs an object into the ByteBuffer.setBeamSpotCrossSectionOrientationAngle(float pBeamSpotCrossSectionOrientationAngle) Setter forbeamSpotCrossSectionOrientationAnglesetBeamSpotCrossSectionSemiMajorAxis(float pBeamSpotCrossSectionSemiMajorAxis) Setter forbeamSpotCrossSectionSemiMajorAxissetBeamSpotCrossSectionSemiMinorAxis(float pBeamSpotCrossSectionSemiMinorAxis) Setter forbeamSpotCrossSectionSemiMinorAxissetBeamSpotType(DEPrecisionAimpointBeamSpotType pBeamSpotType) Setter forbeamSpotTypesetPadding(int pPadding) Utility setter forpaddingsetPadding(short pPadding) Setter forpaddingsetPadding2(int pPadding2) Setter forpadding2setPeakIrradiance(float pPeakIrradiance) Setter forpeakIrradiancesetRecordLength(int pRecordLength) Utility setter forrecordLengthsetRecordLength(short pRecordLength) Setter forrecordLengthsetRecordType(int pRecordType) Setter forrecordTypesetTargetComponentID(byte pTargetComponentID) Setter fortargetComponentIDsetTargetComponentID(int pTargetComponentID) Utility setter fortargetComponentIDsetTargetEntityID(EntityID pTargetEntityID) Setter fortargetEntityIDsetTargetSpotAcceleration(Vector3Float pTargetSpotAcceleration) Setter fortargetSpotAccelerationsetTargetSpotEntityLocation(Vector3Float pTargetSpotEntityLocation) Setter fortargetSpotEntityLocationsetTargetSpotLocation(Vector3Double pTargetSpotLocation) Setter fortargetSpotLocationsetTargetSpotVelocity(Vector3Float pTargetSpotVelocity) Setter fortargetSpotVelocitytoString()intunmarshal(DataInputStream dis) Deserializes an object from a DataInputStream.intunmarshal(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, forthisand the supplied object- Parameters:
obj- the object to compare to- Returns:
- true if the objects are equal, false otherwise.
-
toString
-
hashCode
-