edu.nps.moves.dis7mobile
Class LaunchedMunitionRecord

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

public class LaunchedMunitionRecord
extends java.lang.Object
implements java.io.Serializable

Identity of a communications node. Section 6.2.51 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  EventIdentifier fireEventID
           
protected  EventIdentifier firingEntityID
           
protected  int padding
           
protected  int padding2
           
protected  int padding3
           
protected  EventIdentifier targetEntityID
           
protected  Vector3Double targetLocation
           
 
Constructor Summary
LaunchedMunitionRecord()
          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
 EventIdentifier getFireEventID()
           
 EventIdentifier getFiringEntityID()
           
 int getMarshalledSize()
           
 int getPadding()
           
 int getPadding2()
           
 int getPadding3()
           
 EventIdentifier getTargetEntityID()
           
 Vector3Double getTargetLocation()
           
 void marshal(java.nio.ByteBuffer buff)
          Packs a Pdu into the ByteBuffer.
 void marshal(java.io.DataOutputStream dos)
           
 void setFireEventID(EventIdentifier pFireEventID)
           
 void setFiringEntityID(EventIdentifier pFiringEntityID)
           
 void setPadding(int pPadding)
           
 void setPadding2(int pPadding2)
           
 void setPadding3(int pPadding3)
           
 void setTargetEntityID(EventIdentifier pTargetEntityID)
           
 void setTargetLocation(Vector3Double pTargetLocation)
           
 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

fireEventID

protected EventIdentifier fireEventID

padding

protected int padding

firingEntityID

protected EventIdentifier firingEntityID

padding2

protected int padding2

targetEntityID

protected EventIdentifier targetEntityID

padding3

protected int padding3

targetLocation

protected Vector3Double targetLocation
Constructor Detail

LaunchedMunitionRecord

public LaunchedMunitionRecord()
Constructor

Method Detail

getMarshalledSize

public int getMarshalledSize()

setFireEventID

public void setFireEventID(EventIdentifier pFireEventID)

getFireEventID

public EventIdentifier getFireEventID()

setPadding

public void setPadding(int pPadding)

getPadding

public int getPadding()

setFiringEntityID

public void setFiringEntityID(EventIdentifier pFiringEntityID)

getFiringEntityID

public EventIdentifier getFiringEntityID()

setPadding2

public void setPadding2(int pPadding2)

getPadding2

public int getPadding2()

setTargetEntityID

public void setTargetEntityID(EventIdentifier pTargetEntityID)

getTargetEntityID

public EventIdentifier getTargetEntityID()

setPadding3

public void setPadding3(int pPadding3)

getPadding3

public int getPadding3()

setTargetLocation

public void setTargetLocation(Vector3Double pTargetLocation)

getTargetLocation

public Vector3Double getTargetLocation()

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.