org.npsnet.xrti.proxies
Class HLAattributeHandleValuePair

java.lang.Object
  extended byorg.npsnet.xrti.proxies.HLAattributeHandleValuePair
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class HLAattributeHandleValuePair
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

Pairs an attribute handle with an encoded value.

Author:
org.npsnet.xrti.utilities.ProxyCompiler
See Also:
Serialized Form

Constructor Summary
HLAattributeHandleValuePair()
          Default constructor.
HLAattributeHandleValuePair(HLAattributeHandleValuePair other)
          Copy constructor.
HLAattributeHandleValuePair(long pAttributeHandle, byte[] pValue)
          Constructor.
 
Method Summary
static HLAattributeHandleValuePair decode(HLAEncodingInputStream hlaeis)
          Reads and returns a HLAattributeHandleValuePair from the specified stream.
 void encode(HLAEncodingOutputStream hlaeos)
          Writes this HLAattributeHandleValuePair to the specified stream.
 long getAttributeHandle()
          Returns the value of the attributeHandle field.
 byte[] getValue()
          Returns the value of the value field.
 void setAttributeHandle(long pAttributeHandle)
          Sets the value of the attributeHandle field.
 void setValue(byte[] pValue)
          Sets the value of the value field.
 java.lang.String toString()
          Returns a string representation of this HLAattributeHandleValuePair.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HLAattributeHandleValuePair

public HLAattributeHandleValuePair()
Default constructor.


HLAattributeHandleValuePair

public HLAattributeHandleValuePair(long pAttributeHandle,
                                   byte[] pValue)
Constructor.

Parameters:
pAttributeHandle - the value of the attributeHandle field
pValue - the value of the value field

HLAattributeHandleValuePair

public HLAattributeHandleValuePair(HLAattributeHandleValuePair other)
Copy constructor.

Parameters:
other - the other HLAattributeHandleValuePair to copy
Method Detail

decode

public static HLAattributeHandleValuePair decode(HLAEncodingInputStream hlaeis)
                                          throws java.io.IOException
Reads and returns a HLAattributeHandleValuePair from the specified stream.

Parameters:
hlaeis - the input stream to read from
Returns:
the decoded value
Throws:
java.io.IOException - if an error occurs

encode

public void encode(HLAEncodingOutputStream hlaeos)
            throws java.io.IOException
Writes this HLAattributeHandleValuePair to the specified stream.

Parameters:
hlaeos - the output stream to write to
Throws:
java.io.IOException - if an error occurs

toString

public java.lang.String toString()
Returns a string representation of this HLAattributeHandleValuePair.

Returns:
a string representation of this HLAattributeHandleValuePair

setAttributeHandle

public void setAttributeHandle(long pAttributeHandle)
Sets the value of the attributeHandle field.

Parameters:
pAttributeHandle - the new value for the field

getAttributeHandle

public long getAttributeHandle()
Returns the value of the attributeHandle field.

Returns:
the value of the attributeHandle field

setValue

public void setValue(byte[] pValue)
Sets the value of the value field.

Parameters:
pValue - the new value for the field

getValue

public byte[] getValue()
Returns the value of the value field.

Returns:
the value of the value field