Class EventReportPdu

All Implemented Interfaces:
edu.nps.moves.dis7.Marshaller, java.io.Serializable

public class EventReportPdu
extends SimulationManagementFamilyPdu
implements java.io.Serializable
7.5.12 Reports occurance of a significant event to the simulation manager. See 5.6.5.12. IEEE Std 1278.1-2012, IEEE Standard for Distributed Interactive Simulation—Application Protocols
See Also:
Serialized Form
  • Field Details

    • eventType

      protected EventReportEventType eventType
      Type of event uid 73
    • padding1

      protected int padding1
      padding
    • numberOfFixedDatumRecords

      protected int numberOfFixedDatumRecords
      Number of fixed datum records
    • numberOfVariableDatumRecords

      protected int numberOfVariableDatumRecords
      Number of variable datum records, handled automatically by marshaller at run time (and not modifiable by end-user programmers)
    • fixedDatums

      protected java.util.List<FixedDatum> fixedDatums
      variable length list of fixed datums
    • variableDatums

      protected java.util.List<edu.nps.moves.dis7.VariableDatum> variableDatums
      variable length list of variable length datums
  • Constructor Details

  • Method Details

    • getMarshalledSize

      public int getMarshalledSize()
      Returns the size of this serialized object in bytes
      Specified by:
      getMarshalledSize in interface edu.nps.moves.dis7.Marshaller
      Overrides:
      getMarshalledSize in class SimulationManagementFamilyPdu
    • setEventType

      public EventReportPdu setEventType​(EventReportEventType pEventType)
      Setter for eventType
    • getEventType

      public EventReportEventType getEventType()
      Getter for eventType
    • setPadding1

      public EventReportPdu setPadding1​(int pPadding1)
      Setter for padding1
    • getPadding1

      public int getPadding1()
      Getter for padding1
    • setFixedDatums

      public EventReportPdu setFixedDatums​(java.util.List<FixedDatum> pFixedDatums)
      Setter for fixedDatums
    • getFixedDatums

      public java.util.List<FixedDatum> getFixedDatums()
      Getter for fixedDatums
    • setVariableDatums

      public EventReportPdu setVariableDatums​(java.util.List<edu.nps.moves.dis7.VariableDatum> pVariableDatums)
      Setter for variableDatums
    • getVariableDatums

      public java.util.List<edu.nps.moves.dis7.VariableDatum> getVariableDatums()
      Getter for variableDatums
    • marshal

      public void marshal​(java.io.DataOutputStream dos) throws java.lang.Exception
      Serializes an object to a DataOutputStream.
      Specified by:
      marshal in interface edu.nps.moves.dis7.Marshaller
      Overrides:
      marshal in class SimulationManagementFamilyPdu
      Parameters:
      dos - the OutputStream
      Throws:
      java.lang.Exception - if something goes wrong
      See Also:
      DataOutputStream
    • unmarshal

      public int unmarshal​(java.io.DataInputStream dis) throws java.lang.Exception
      Unserializes an object from a DataInputStream.
      Specified by:
      unmarshal in interface edu.nps.moves.dis7.Marshaller
      Overrides:
      unmarshal in class SimulationManagementFamilyPdu
      Parameters:
      dis - the InputStream
      Returns:
      unmarshalled size
      Throws:
      java.lang.Exception - if something goes wrong
      See Also:
      DataInputStream
    • marshal

      public void marshal​(java.nio.ByteBuffer buff) throws java.lang.Exception
      Packs an object into the ByteBuffer.
      Specified by:
      marshal in interface edu.nps.moves.dis7.Marshaller
      Overrides:
      marshal in class SimulationManagementFamilyPdu
      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
      java.lang.Exception - ByteBuffer-generated exception
      See Also:
      ByteBuffer
    • unmarshal

      public int unmarshal​(java.nio.ByteBuffer buff) throws java.lang.Exception
      Unpacks a Pdu from the underlying data.
      Specified by:
      unmarshal in interface edu.nps.moves.dis7.Marshaller
      Overrides:
      unmarshal in class SimulationManagementFamilyPdu
      Parameters:
      buff - The ByteBuffer at the position to begin reading
      Returns:
      marshalled size
      Throws:
      java.nio.BufferUnderflowException - if buff is too small
      java.lang.Exception - ByteBuffer-generated exception
      See Also:
      ByteBuffer
    • equals

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class SimulationManagementFamilyPdu
    • equalsImpl

      public boolean equalsImpl​(java.lang.Object obj)
      Description copied from class: Pdu
      Compare all fields that contribute to the state, ignoring transient and static fields, for this and the supplied object
      Overrides:
      equalsImpl in class SimulationManagementFamilyPdu
      Parameters:
      obj - the object to compare to
      Returns:
      true if the objects are equal, false otherwise.
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class SimulationManagementFamilyPdu