edu.nps.moves.dis7mobile
Class DirectedEnergyDamage

java.lang.Object
  extended by edu.nps.moves.dis7mobile.DirectedEnergyDamage
All Implemented Interfaces:
java.io.Serializable

public class DirectedEnergyDamage
extends java.lang.Object
implements java.io.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.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

Author:
DMcG
See Also:
Serialized Form

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

recordType

protected long recordType
DE Record Type.


recordLength

protected int recordLength
DE Record Length (bytes).


padding

protected int padding
padding.


damageLocation

protected Vector3Float damageLocation
location of damage, relative to center of entity


damageDiameter

protected float damageDiameter
Size of damaged area, in meters.


temperature

protected float temperature
average temp of the damaged area, in degrees celsius. If firing entitty does not model this, use a value of -273.15


componentIdentification

protected short componentIdentification
enumeration


componentDamageStatus

protected short componentDamageStatus
enumeration


componentVisualDamageStatus

protected short componentVisualDamageStatus
enumeration


componentVisualSmokeColor

protected short componentVisualSmokeColor
enumeration


fireEventID

protected EventIdentifier fireEventID
For any component damage resulting this field shall be set to the fire event ID from that PDU.


padding2

protected int padding2
padding

Constructor Detail

DirectedEnergyDamage

public DirectedEnergyDamage()
Constructor

Method Detail

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

public void setDamageLocation(Vector3Float pDamageLocation)

getDamageLocation

public Vector3Float 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

public void setFireEventID(EventIdentifier pFireEventID)

getFireEventID

public EventIdentifier getFireEventID()

setPadding2

public void setPadding2(int pPadding2)

getPadding2

public int getPadding2()

marshal

public void marshal(java.io.DataOutputStream dos)

unmarshal

public void unmarshal(java.io.DataInputStream dis)

marshal

public void marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer.

Parameters:
buff - The ByteBuffer at the position to begin writing
Throws:
java.nio.BufferOverflowException - if buff is too small
java.nio.ReadOnlyBufferException - if buff is read only
Since:
??
See Also:
ByteBuffer

unmarshal

public void unmarshal(java.nio.ByteBuffer buff)
Unpacks a Pdu from the underlying data.

Parameters:
buff - The ByteBuffer at the position to begin reading
Throws:
java.nio.BufferUnderflowException - if buff is too small
Since:
??
See Also:
ByteBuffer

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

equalsImpl

public 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

Parameters:
obj - the object to compare to
Returns:
true if the objects are equal, false otherwise.