Class DirectedEnergyFirePdu
java.lang.Object
edu.nps.moves.dis7.pdus.Pdu
edu.nps.moves.dis7.pdus.PduBase
edu.nps.moves.dis7.pdus.WarfareFamilyPdu
edu.nps.moves.dis7.pdus.DirectedEnergyFirePdu
- All Implemented Interfaces:
Marshaller
,Serializable
7.3.4 Used to communicate the firing of a directed energy weapon.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected float
Field shall identify the beam diameter at the aperture/emitter, Section 7.3.4protected Vector3Float
Field shall identify the location of the DE weapon aperture/emitter, Section 7.3.4protected ByteArrayOutputStream
byteArrayOutputStream (baos) is used for marshal/unmarshal serializationprotected float
Field shall indicate the current cumulative duration of the shot, Section 7.3.4protected DataOutputStream
dataOutputStream (dos) is used for marshal/unmarshal serializationprotected List
<StandardVariableSpecification> Fields shall contain one or more DE records, records shall conform to the variable record format (Section6.2.82), Section 7.3.4protected EventIdentifier
eventID is an undescribed parameter...protected EntityID
ID of the entity that shotprotected DEFireFlags
16bit Boolean field shall contain various flags to indicate status information needed to process a DE, Section 7.3.4 uid 313protected EntityType
Field shall identify the munition type enumeration for the DE weapon beam, Section 7.3.4static final String
The name of this PDU typeprotected short
Field shall specify the number of DE records, Section 7.3.4protected int
pad1 is an undescribed parameter...protected byte
pad2 is an undescribed parameter...protected int
pad3 is an undescribed parameter...protected short
pad4 is an undescribed parameter...protected float
pulseRepititionFrequency is an undescribed parameter...protected DEFirePulseShape
Field shall identify the pulse shape and shall be represented as an 8-bit enumeration, Section 7.3.4 uid 312protected float
field shall identify the pulse width emissions in units of seconds, Section 7.3.4protected ClockTime
Field shall indicate the simulation time at start of the shot, Section 7.3.4protected float
Field shall identify the emissions wavelength in units of meters, Section 7.3.4Fields inherited from class edu.nps.moves.dis7.pdus.WarfareFamilyPdu
FAMILY_NAME
Fields inherited from class edu.nps.moves.dis7.pdus.Pdu
exerciseID, length, pduType, protocolFamily, protocolVersion, timestamp
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor creates and configures a new instance object -
Method Summary
Modifier and TypeMethodDescriptioncopy()
copy method creates a deep copy of current object using preferred marshalling methodCreates a "deep copy" of current object using ByteBuffer methods.copy method creates a deep copy of current object using DataOutputStream methods.boolean
boolean
equalsImpl
(Object obj) Compare all fields that contribute to the state, ignoring transient and static fields, forthis
and the supplied objectfloat
Getter forapertureDiameter
Getter forapertureEmitterLocation
float
Getter forcommulativeShotTime
Getter fordERecords
Getter foreventID
Getter forfiringEntityID
getFlags()
Getter forflags
int
Returns size of this serialized (marshalled) object in bytesGetter formunitionType
int
getPad1()
Getter forpad1
byte
getPad2()
Getter forpad2
int
getPad3()
Getter forpad3
short
getPad4()
Getter forpad4
float
Getter forpulseRepititionFrequency
Getter forpulseShape
float
Getter forpulseWidth
Getter forshotStartTime
float
Getter forwavelength
int
hashCode()
void
marshal
(DataOutputStream dos) Serializes an object to a DataOutputStream.void
marshal
(ByteBuffer byteBuffer) Packs an object into the ByteBuffer.setApertureDiameter
(float pApertureDiameter) Setter forapertureDiameter
setApertureEmitterLocation
(Vector3Float pApertureEmitterLocation) Setter forapertureEmitterLocation
setCommulativeShotTime
(float pCommulativeShotTime) Setter forcommulativeShotTime
setDERecords
(List<StandardVariableSpecification> pDERecords) Setter fordERecords
setEventID
(EventIdentifier pEventID) Setter foreventID
setFiringEntityID
(EntityID pFiringEntityID) Setter forfiringEntityID
setFlags
(DEFireFlags pFlags) Setter forflags
setMunitionType
(EntityType pMunitionType) Setter formunitionType
setPad1
(int pPad1) Setter forpad1
setPad2
(byte pPad2) Setter forpad2
setPad2
(int pPad2) Utility setter forpad2
setPad3
(int pPad3) Setter forpad3
setPad4
(int pPad4) Utility setter forpad4
setPad4
(short pPad4) Setter forpad4
setPulseRepititionFrequency
(float pPulseRepititionFrequency) Setter forpulseRepititionFrequency
setPulseShape
(DEFirePulseShape pPulseShape) Setter forpulseShape
setPulseWidth
(float pPulseWidth) Setter forpulseWidth
setShotStartTime
(ClockTime pShotStartTime) Setter forshotStartTime
setWavelength
(float pWavelength) Setter forwavelength
toString()
int
unmarshal
(DataInputStream dis) Deserializes an object from a DataInputStream.int
unmarshal
(ByteBuffer byteBuffer) Unpacks a Pdu from the underlying data.Methods inherited from class edu.nps.moves.dis7.pdus.PduBase
getPadding, getPduStatus, setPadding, setPadding, setPduStatus
Methods inherited from class edu.nps.moves.dis7.pdus.Pdu
copyByPduFactory, getExerciseID, getLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, getTimestampSeconds, isAcknowledgeRPdu, isActionRequestPdu, isActionRequestRPdu, isActionResponsePdu, isActionResponseRPdu, isAggregateStatePdu, isAppearancePdu, isArealObjectStatePdu, isArticulatedPartsPdu, isAttributePdu, isCollisionElasticPdu, isCollisionPdu, isCommentPdu, isCommentRPdu, isCreateEntityPdu, isCreateEntityRPdu, isDataPdu, isDataQueryPdu, isDataQueryRPdu, isDataRPdu, isDesignatorPdu, isDetonationPdu, isDirectedEnergyFirePdu, isDistributedEmissionsRegenerationFamilyPdu, isElectromagneticEmissionPdu, isEntityDamageStatusPdu, isEntityInformationInteractionFamilyPdu, isEntityManagementFamilyPdu, isEntityStatePdu, isEntityStateUpdatePdu, isEnvironmentalProcessPdu, isEventReportPdu, isEventReportRPdu, isFirePdu, isGriddedDataPdu, isIFFPdu, isInformationOperationsActionPdu, isInformationOperationsFamilyPdu, isInformationOperationsReportPdu, isIntercomControlPdu, isIntercomSignalPdu, isIsGroupOfPdu, isIsPartOfPdu, isLEDetonationPdu, isLEFirePdu, isLinearObjectStatePdu, isLiveEntityDetonationPdu, isLiveEntityFirePdu, isLogisticsFamilyPdu, isMinefieldDataPdu, isMinefieldFamilyPdu, isMinefieldQueryPdu, isMinefieldResponseNACKPdu, isMinefieldStatePdu, isPointObjectStatePdu, isRadioCommunicationsFamilyPdu, isReceiverPdu, isRecordQueryRPdu, isRecordRPdu, isReliablePdu, isRemoveEntityPdu, isRemoveEntityRPdu, isRepairCompletePdu, isRepairResponsePdu, isResupplyCancelPdu, isResupplyOfferPdu, isResupplyReceivedPdu, isSEESPdu, isSetDataPdu, isSetDataRPdu, isSetRecordRPdu, isSignalPdu, isSimulationManagementFamilyPdu, isSimulationManagementWithReliabilityFamilyPdu, isStartResumePdu, isStartResumeRPdu, isStopFreezePdu, isStopFreezeRPdu, isSupplementalEmissionEntityStatePdu, isSyntheticEnvironmentFamilyPdu, isTransferOwnershipPdu, isTransmitterPdu, isTSPIPdu, isUnderwaterAcousticPdu, isWarfareFamilyPdu, marshal, occursAfter, occursBefore, occursSameTime, setExerciseID, setExerciseID, setLength, setLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp, setTimestampSeconds
-
Field Details
-
NAME
-
firingEntityID
ID of the entity that shot -
eventID
eventID is an undescribed parameter... -
munitionType
Field shall identify the munition type enumeration for the DE weapon beam, Section 7.3.4 -
shotStartTime
Field shall indicate the simulation time at start of the shot, Section 7.3.4 -
commulativeShotTime
protected float commulativeShotTimeField shall indicate the current cumulative duration of the shot, Section 7.3.4 -
apertureEmitterLocation
Field shall identify the location of the DE weapon aperture/emitter, Section 7.3.4 -
apertureDiameter
protected float apertureDiameterField shall identify the beam diameter at the aperture/emitter, Section 7.3.4 -
wavelength
protected float wavelengthField shall identify the emissions wavelength in units of meters, Section 7.3.4 -
pad1
protected int pad1pad1 is an undescribed parameter... -
pulseRepititionFrequency
protected float pulseRepititionFrequencypulseRepititionFrequency is an undescribed parameter... -
pulseWidth
protected float pulseWidthfield shall identify the pulse width emissions in units of seconds, Section 7.3.4 -
flags
16bit Boolean field shall contain various flags to indicate status information needed to process a DE, Section 7.3.4 uid 313 -
pulseShape
Field shall identify the pulse shape and shall be represented as an 8-bit enumeration, Section 7.3.4 uid 312 -
pad2
protected byte pad2pad2 is an undescribed parameter... -
pad3
protected int pad3pad3 is an undescribed parameter... -
pad4
protected short pad4pad4 is an undescribed parameter... -
numberOfDERecords
protected short numberOfDERecordsField shall specify the number of DE records, Section 7.3.4 -
dERecords
Fields shall contain one or more DE records, records shall conform to the variable record format (Section6.2.82), Section 7.3.4 -
byteArrayOutputStream
byteArrayOutputStream (baos) is used for marshal/unmarshal serialization- See Also:
-
dataOutputStream
dataOutputStream (dos) is used for marshal/unmarshal serialization- See Also:
-
-
Constructor Details
-
DirectedEnergyFirePdu
public DirectedEnergyFirePdu()Constructor creates and configures a new instance object
-
-
Method Details
-
copy
copy method creates a deep copy of current object using preferred marshalling method- Returns:
- deep copy of PDU
-
copyByteBuffer
Creates a "deep copy" of current object using ByteBuffer methods.- Returns:
- deep copy of PDU
-
copyDataOutputStream
copy method creates a deep copy of current object using DataOutputStream methods.- Returns:
- deep copy of PDU
-
getMarshalledSize
public int getMarshalledSize()Returns size of this serialized (marshalled) object in bytes- Specified by:
getMarshalledSize
in interfaceMarshaller
- Overrides:
getMarshalledSize
in classWarfareFamilyPdu
- Returns:
- serialized size in bytes
- See Also:
-
setFiringEntityID
Setter forfiringEntityID
- Parameters:
pFiringEntityID
- new value of interest- Returns:
- same object to permit progressive setters
-
getFiringEntityID
-
setEventID
Setter foreventID
- Parameters:
pEventID
- new value of interest- Returns:
- same object to permit progressive setters
-
getEventID
-
setMunitionType
Setter formunitionType
- Parameters:
pMunitionType
- new value of interest- Returns:
- same object to permit progressive setters
-
getMunitionType
-
setShotStartTime
Setter forshotStartTime
- Parameters:
pShotStartTime
- new value of interest- Returns:
- same object to permit progressive setters
-
getShotStartTime
-
setCommulativeShotTime
Setter forcommulativeShotTime
- Parameters:
pCommulativeShotTime
- new value of interest- Returns:
- same object to permit progressive setters
-
getCommulativeShotTime
-
setApertureEmitterLocation
Setter forapertureEmitterLocation
- Parameters:
pApertureEmitterLocation
- new value of interest- Returns:
- same object to permit progressive setters
-
getApertureEmitterLocation
Getter forapertureEmitterLocation
- Returns:
- value of interest
-
setApertureDiameter
Setter forapertureDiameter
- Parameters:
pApertureDiameter
- new value of interest- Returns:
- same object to permit progressive setters
-
getApertureDiameter
-
setWavelength
Setter forwavelength
- Parameters:
pWavelength
- new value of interest- Returns:
- same object to permit progressive setters
-
getWavelength
-
setPad1
Setter forpad1
- Parameters:
pPad1
- new value of interest- Returns:
- same object to permit progressive setters
-
getPad1
-
setPulseRepititionFrequency
Setter forpulseRepititionFrequency
- Parameters:
pPulseRepititionFrequency
- new value of interest- Returns:
- same object to permit progressive setters
-
getPulseRepititionFrequency
public float getPulseRepititionFrequency()Getter forpulseRepititionFrequency
- Returns:
- value of interest
-
setPulseWidth
Setter forpulseWidth
- Parameters:
pPulseWidth
- new value of interest- Returns:
- same object to permit progressive setters
-
getPulseWidth
-
setFlags
Setter forflags
- Parameters:
pFlags
- new value of interest- Returns:
- same object to permit progressive setters
-
getFlags
-
setPulseShape
Setter forpulseShape
- Parameters:
pPulseShape
- new value of interest- Returns:
- same object to permit progressive setters
-
getPulseShape
-
setPad2
Setter forpad2
- Parameters:
pPad2
- new value of interest- Returns:
- same object to permit progressive setters
-
setPad2
Utility setter forpad2
- Parameters:
pPad2
- new value of interest- Returns:
- same object to permit progressive setters
-
getPad2
-
setPad3
Setter forpad3
- Parameters:
pPad3
- new value of interest- Returns:
- same object to permit progressive setters
-
getPad3
-
setPad4
Setter forpad4
- Parameters:
pPad4
- new value of interest- Returns:
- same object to permit progressive setters
-
setPad4
Utility setter forpad4
- Parameters:
pPad4
- new value of interest- Returns:
- same object to permit progressive setters
-
getPad4
-
setDERecords
Setter fordERecords
- Parameters:
pDERecords
- new value of interest- Returns:
- same object to permit progressive setters
-
getDERecords
Getter fordERecords
- Returns:
- value of interest
-
marshal
Serializes an object to a DataOutputStream.- Specified by:
marshal
in interfaceMarshaller
- Overrides:
marshal
in classWarfareFamilyPdu
- Parameters:
dos
- the OutputStream- Throws:
Exception
- if something goes wrong- See Also:
-
unmarshal
Deserializes an object from a DataInputStream.- Specified by:
unmarshal
in interfaceMarshaller
- Overrides:
unmarshal
in classWarfareFamilyPdu
- 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.- Specified by:
marshal
in interfaceMarshaller
- Overrides:
marshal
in classWarfareFamilyPdu
- 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.- Specified by:
unmarshal
in interfaceMarshaller
- Overrides:
unmarshal
in classWarfareFamilyPdu
- 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
- Overrides:
equals
in classWarfareFamilyPdu
-
equalsImpl
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 classWarfareFamilyPdu
- Parameters:
obj
- the object to compare to- Returns:
- true if the objects are equal, false otherwise.
-
toString
- Overrides:
toString
in classWarfareFamilyPdu
-
hashCode
-