|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.nps.moves.dis7mobile.DirectedEnergyDamage
public class DirectedEnergyDamage
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.17.2 Copyright (c) 2008-2010, 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
Field Summary | |
---|---|
protected short |
componentDamageStatus
enumeration |
protected short |
componentIdentification
enumeration |
protected short |
componentVisualDamageStatus
enumeration |
protected short |
componentVisualSmokeColor
enumeration |
protected float |
damageDiameter
Size of damaged area, in meters. |
protected Vector3Float |
damageLocation
location of damage, relative to center of entity |
protected EventIdentifier |
fireEventID
For any component damage resulting this field shall be set to the fire event ID from that PDU. |
protected int |
padding
padding. |
protected int |
padding2
padding |
protected int |
recordLength
DE Record Length (bytes). |
protected long |
recordType
DE Record Type. |
protected float |
temperature
average temp of the damaged area, in degrees celsius. |
Constructor Summary | |
---|---|
DirectedEnergyDamage()
Constructor |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
boolean |
equalsImpl(java.lang.Object obj)
Compare all fields that contribute to the state, ignoring transient and static fields, for this and the supplied object |
short |
getComponentDamageStatus()
|
short |
getComponentIdentification()
|
short |
getComponentVisualDamageStatus()
|
short |
getComponentVisualSmokeColor()
|
float |
getDamageDiameter()
|
Vector3Float |
getDamageLocation()
|
EventIdentifier |
getFireEventID()
|
int |
getMarshalledSize()
|
int |
getPadding()
|
int |
getPadding2()
|
int |
getRecordLength()
|
long |
getRecordType()
|
float |
getTemperature()
|
void |
marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer. |
void |
marshal(java.io.DataOutputStream dos)
|
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(java.nio.ByteBuffer buff)
Unpacks a Pdu from the underlying data. |
void |
unmarshal(java.io.DataInputStream dis)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected long recordType
protected int recordLength
protected int padding
protected Vector3Float damageLocation
protected float damageDiameter
protected float temperature
protected short componentIdentification
protected short componentDamageStatus
protected short componentVisualDamageStatus
protected short componentVisualSmokeColor
protected EventIdentifier fireEventID
protected int padding2
Constructor Detail |
---|
public DirectedEnergyDamage()
Method Detail |
---|
public int getMarshalledSize()
public void setRecordType(long pRecordType)
public long getRecordType()
public void setRecordLength(int pRecordLength)
public int getRecordLength()
public void setPadding(int pPadding)
public int getPadding()
public void setDamageLocation(Vector3Float pDamageLocation)
public Vector3Float getDamageLocation()
public void setDamageDiameter(float pDamageDiameter)
public float getDamageDiameter()
public void setTemperature(float pTemperature)
public float getTemperature()
public void setComponentIdentification(short pComponentIdentification)
public short getComponentIdentification()
public void setComponentDamageStatus(short pComponentDamageStatus)
public short getComponentDamageStatus()
public void setComponentVisualDamageStatus(short pComponentVisualDamageStatus)
public short getComponentVisualDamageStatus()
public void setComponentVisualSmokeColor(short pComponentVisualSmokeColor)
public short getComponentVisualSmokeColor()
public void setFireEventID(EventIdentifier pFireEventID)
public EventIdentifier getFireEventID()
public void setPadding2(int pPadding2)
public int getPadding2()
public void marshal(java.io.DataOutputStream dos)
public void unmarshal(java.io.DataInputStream dis)
public void marshal(java.nio.ByteBuffer buff)
buff
- The ByteBuffer at the position to begin writing
java.nio.BufferOverflowException
- if buff is too small
java.nio.ReadOnlyBufferException
- if buff is read onlyByteBuffer
public void unmarshal(java.nio.ByteBuffer buff)
buff
- The ByteBuffer at the position to begin reading
java.nio.BufferUnderflowException
- if buff is too smallByteBuffer
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean equalsImpl(java.lang.Object obj)
this
and the supplied object
obj
- the object to compare to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |