edu.nps.moves.dis7mobile
Class VariableParameter

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

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

specification of additional information associated with an entity or detonation, not otherwise accounted for in a PDU 6.2.93.1 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 recordType
          the identification of the Variable Parameter record.
protected  long variableParameterFields1
          Variable parameter data fields.
protected  long variableParameterFields2
          Variable parameter data fields.
protected  int variableParameterFields3
          Variable parameter data fields.
protected  short variableParameterFields4
          Variable parameter data fields.
 
Constructor Summary
VariableParameter()
          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
 int getMarshalledSize()
           
 short getRecordType()
           
 long getVariableParameterFields1()
           
 long getVariableParameterFields2()
           
 int getVariableParameterFields3()
           
 short getVariableParameterFields4()
           
 void marshal(java.nio.ByteBuffer buff)
          Packs a Pdu into the ByteBuffer.
 void marshal(java.io.DataOutputStream dos)
           
 void setRecordType(short pRecordType)
           
 void setVariableParameterFields1(long pVariableParameterFields1)
           
 void setVariableParameterFields2(long pVariableParameterFields2)
           
 void setVariableParameterFields3(int pVariableParameterFields3)
           
 void setVariableParameterFields4(short pVariableParameterFields4)
           
 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 short recordType
the identification of the Variable Parameter record. Enumeration from EBV


variableParameterFields1

protected long variableParameterFields1
Variable parameter data fields. Two longs minus one byte


variableParameterFields2

protected long variableParameterFields2
Variable parameter data fields.


variableParameterFields3

protected int variableParameterFields3
Variable parameter data fields.


variableParameterFields4

protected short variableParameterFields4
Variable parameter data fields.

Constructor Detail

VariableParameter

public VariableParameter()
Constructor

Method Detail

getMarshalledSize

public int getMarshalledSize()

setRecordType

public void setRecordType(short pRecordType)

getRecordType

public short getRecordType()

setVariableParameterFields1

public void setVariableParameterFields1(long pVariableParameterFields1)

getVariableParameterFields1

public long getVariableParameterFields1()

setVariableParameterFields2

public void setVariableParameterFields2(long pVariableParameterFields2)

getVariableParameterFields2

public long getVariableParameterFields2()

setVariableParameterFields3

public void setVariableParameterFields3(int pVariableParameterFields3)

getVariableParameterFields3

public int getVariableParameterFields3()

setVariableParameterFields4

public void setVariableParameterFields4(short pVariableParameterFields4)

getVariableParameterFields4

public short getVariableParameterFields4()

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.