Class LaunchedMunitionRecord

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

public class LaunchedMunitionRecord extends Object implements Serializable
Identity of a communications node. Section 6.2.50 IEEE Std 1278.1-2012, IEEE Standard for Distributed Interactive Simulation - Application Protocols
See Also:
Serialized Form
  • Field Details

    • fireEventID

      protected EventIdentifier fireEventID
      fireEventID is an undescribed parameter...
    • padding

      protected short padding
      padding is an undescribed parameter...
    • firingEntityID

      protected EntityID firingEntityID
      firingEntityID is an undescribed parameter...
    • padding2

      protected short padding2
      padding2 is an undescribed parameter...
    • targetEntityID

      protected EntityID targetEntityID
      targetEntityID is an undescribed parameter...
    • padding3

      protected short padding3
      padding3 is an undescribed parameter...
    • targetLocation

      protected Vector3Double targetLocation
      targetLocation is an undescribed parameter...
  • Constructor Details

    • LaunchedMunitionRecord

      public LaunchedMunitionRecord()
      Constructor creates and configures a new instance object
  • Method Details

    • getMarshalledSize

      public int getMarshalledSize()
      Returns size of this serialized (marshalled) object in bytes
      Returns:
      serialized size in bytes
      See Also:
      https://en.wikipedia.org/wiki/Marshalling_(computer_science)
    • setFireEventID

      public LaunchedMunitionRecord setFireEventID(EventIdentifier pFireEventID)
      Setter for fireEventID
      Parameters:
      pFireEventID - new value of interest
      Returns:
      same object to permit progressive setters
    • getFireEventID

      public EventIdentifier getFireEventID()
      Getter for fireEventID
      Returns:
      value of interest
    • setPadding

      public LaunchedMunitionRecord setPadding(short pPadding)
      Setter for padding
      Parameters:
      pPadding - new value of interest
      Returns:
      same object to permit progressive setters
    • setPadding

      public LaunchedMunitionRecord setPadding(int pPadding)
      Utility setter for padding
      Parameters:
      pPadding - new value of interest
      Returns:
      same object to permit progressive setters
    • getPadding

      public short getPadding()
      Getter for padding
      Returns:
      value of interest
    • setFiringEntityID

      public LaunchedMunitionRecord setFiringEntityID(EntityID pFiringEntityID)
      Setter for firingEntityID
      Parameters:
      pFiringEntityID - new value of interest
      Returns:
      same object to permit progressive setters
    • getFiringEntityID

      public EntityID getFiringEntityID()
      Getter for firingEntityID
      Returns:
      value of interest
    • setPadding2

      public LaunchedMunitionRecord setPadding2(short pPadding2)
      Setter for padding2
      Parameters:
      pPadding2 - new value of interest
      Returns:
      same object to permit progressive setters
    • setPadding2

      public LaunchedMunitionRecord setPadding2(int pPadding2)
      Utility setter for padding2
      Parameters:
      pPadding2 - new value of interest
      Returns:
      same object to permit progressive setters
    • getPadding2

      public short getPadding2()
      Getter for padding2
      Returns:
      value of interest
    • setTargetEntityID

      public LaunchedMunitionRecord setTargetEntityID(EntityID pTargetEntityID)
      Setter for targetEntityID
      Parameters:
      pTargetEntityID - new value of interest
      Returns:
      same object to permit progressive setters
    • getTargetEntityID

      public EntityID getTargetEntityID()
      Getter for targetEntityID
      Returns:
      value of interest
    • setPadding3

      public LaunchedMunitionRecord setPadding3(short pPadding3)
      Setter for padding3
      Parameters:
      pPadding3 - new value of interest
      Returns:
      same object to permit progressive setters
    • setPadding3

      public LaunchedMunitionRecord setPadding3(int pPadding3)
      Utility setter for padding3
      Parameters:
      pPadding3 - new value of interest
      Returns:
      same object to permit progressive setters
    • getPadding3

      public short getPadding3()
      Getter for padding3
      Returns:
      value of interest
    • setTargetLocation

      public LaunchedMunitionRecord setTargetLocation(Vector3Double pTargetLocation)
      Setter for targetLocation
      Parameters:
      pTargetLocation - new value of interest
      Returns:
      same object to permit progressive setters
    • getTargetLocation

      public Vector3Double getTargetLocation()
      Getter for targetLocation
      Returns:
      value of interest
    • marshal

      public void marshal(DataOutputStream dos) throws Exception
      Serializes an object to a DataOutputStream.
      Parameters:
      dos - the OutputStream
      Throws:
      Exception - if something goes wrong
      See Also:
      DataOutputStream
    • unmarshal

      public int unmarshal(DataInputStream dis) throws Exception
      Deserializes an object from a DataInputStream.
      Parameters:
      dis - the InputStream
      Returns:
      marshalled serialized size in bytes
      Throws:
      Exception - if something goes wrong
      See Also:
      DataInputStream, https://en.wikipedia.org/wiki/Marshalling_(computer_science)
    • marshal

      public void marshal(ByteBuffer byteBuffer) throws Exception
      Packs an object into the ByteBuffer.
      Parameters:
      byteBuffer - The ByteBuffer at the position to begin writing
      Throws:
      BufferOverflowException - if byteBuffer is too small
      ReadOnlyBufferException - if byteBuffer is read only
      Exception - ByteBuffer-generated exception
      See Also:
      ByteBuffer
    • unmarshal

      public int unmarshal(ByteBuffer byteBuffer) throws Exception
      Unpacks a Pdu from the underlying data.
      Parameters:
      byteBuffer - The ByteBuffer at the position to begin reading
      Returns:
      marshalled serialized size in bytes
      Throws:
      BufferUnderflowException - if byteBuffer is too small
      Exception - ByteBuffer-generated exception
      See Also:
      ByteBuffer, https://en.wikipedia.org/wiki/Marshalling_(computer_science)
    • 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object