Class DirectedEnergyDamage

java.lang.Object
edu.nps.moves.dis7.DirectedEnergyDamage
All Implemented Interfaces:
Serializable

public class DirectedEnergyDamage extends Object implements 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 Details

    • 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 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

      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(DataOutputStream dos)
    • unmarshal

      public void unmarshal(DataInputStream dis)
    • marshal

      public void marshal(ByteBuffer buff)
      Packs a Pdu into the ByteBuffer.
      Parameters:
      buff - The ByteBuffer at the position to begin writing
      Throws:
      BufferOverflowException - if buff is too small
      ReadOnlyBufferException - if buff is read only
      Since:
      ??
      See Also:
    • unmarshal

      public void unmarshal(ByteBuffer buff)
      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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsImpl

      public boolean equalsImpl(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.