Package edu.nps.moves.dis7
Class DirectedEnergyDamage
java.lang.Object
edu.nps.moves.dis7.DirectedEnergyDamage
- All Implemented Interfaces:
Serializable
Damage sustained by an entity due to directed energy. Location of the damage
based on a relative x,y,z location from the center of the entity. Section
6.2.15.2
Copyright (c) 2008-2016, MOVES Institute, Naval Postgraduate School. All
rights reserved. This work is licensed under the BSD open source license,
available at https://www.movesinstitute.org/licenses/bsd.html
- Author:
- DMcG
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected short
enumerationprotected short
enumerationprotected short
enumerationprotected short
enumerationprotected float
Size of damaged area, in meters.protected Vector3Float
location of damage, relative to center of entityprotected EventIdentifier
For any component damage resulting this field shall be set to the fire event ID from that PDU.protected int
padding.protected int
paddingprotected int
DE Record Length (bytes).protected long
DE Record Type.protected float
average temp of the damaged area, in degrees celsius. -
Constructor Summary
Constructors -
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 objectshort
short
short
short
float
int
int
int
int
long
float
void
marshal
(DataOutputStream dos) void
marshal
(ByteBuffer buff) Packs a Pdu into the ByteBuffer.void
setComponentDamageStatus
(short pComponentDamageStatus) void
setComponentIdentification
(short pComponentIdentification) void
setComponentVisualDamageStatus
(short pComponentVisualDamageStatus) void
setComponentVisualSmokeColor
(short pComponentVisualSmokeColor) void
setDamageDiameter
(float pDamageDiameter) void
setDamageLocation
(Vector3Float pDamageLocation) void
setFireEventID
(EventIdentifier pFireEventID) void
setPadding
(int pPadding) void
setPadding2
(int pPadding2) void
setRecordLength
(int pRecordLength) void
setRecordType
(long pRecordType) void
setTemperature
(float pTemperature) void
unmarshal
(DataInputStream dis) void
unmarshal
(ByteBuffer buff) Unpacks a Pdu from the underlying data.
-
Field Details
-
recordType
protected long recordTypeDE Record Type. -
recordLength
protected int recordLengthDE Record Length (bytes). -
padding
protected int paddingpadding. -
damageLocation
location of damage, relative to center of entity -
damageDiameter
protected float damageDiameterSize of damaged area, in meters. -
temperature
protected float temperatureaverage temp of the damaged area, in degrees celsius. If firing entitty does not model this, use a value of -273.15 -
componentIdentification
protected short componentIdentificationenumeration -
componentDamageStatus
protected short componentDamageStatusenumeration -
componentVisualDamageStatus
protected short componentVisualDamageStatusenumeration -
componentVisualSmokeColor
protected short componentVisualSmokeColorenumeration -
fireEventID
For any component damage resulting this field shall be set to the fire event ID from that PDU. -
padding2
protected int padding2padding
-
-
Constructor Details
-
DirectedEnergyDamage
public DirectedEnergyDamage()Constructor
-
-
Method Details
-
getMarshalledSize
public int getMarshalledSize() -
setRecordType
public void setRecordType(long pRecordType) -
getRecordType
public long getRecordType() -
setRecordLength
public void setRecordLength(int pRecordLength) -
getRecordLength
public int getRecordLength() -
setPadding
public void setPadding(int pPadding) -
getPadding
public int getPadding() -
setDamageLocation
-
getDamageLocation
-
setDamageDiameter
public void setDamageDiameter(float pDamageDiameter) -
getDamageDiameter
public float getDamageDiameter() -
setTemperature
public void setTemperature(float pTemperature) -
getTemperature
public float getTemperature() -
setComponentIdentification
public void setComponentIdentification(short pComponentIdentification) -
getComponentIdentification
public short getComponentIdentification() -
setComponentDamageStatus
public void setComponentDamageStatus(short pComponentDamageStatus) -
getComponentDamageStatus
public short getComponentDamageStatus() -
setComponentVisualDamageStatus
public void setComponentVisualDamageStatus(short pComponentVisualDamageStatus) -
getComponentVisualDamageStatus
public short getComponentVisualDamageStatus() -
setComponentVisualSmokeColor
public void setComponentVisualSmokeColor(short pComponentVisualSmokeColor) -
getComponentVisualSmokeColor
public short getComponentVisualSmokeColor() -
setFireEventID
-
getFireEventID
-
setPadding2
public void setPadding2(int pPadding2) -
getPadding2
public int getPadding2() -
marshal
-
unmarshal
-
marshal
Packs a Pdu into the ByteBuffer.- Parameters:
buff
- The ByteBuffer at the position to begin writing- Throws:
BufferOverflowException
- if buff is too smallReadOnlyBufferException
- if buff is read only- Since:
- ??
- See Also:
-
unmarshal
Unpacks a Pdu from the underlying data.- Parameters:
buff
- The ByteBuffer at the position to begin reading- Throws:
BufferUnderflowException
- if buff is too small- Since:
- ??
- 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.
-