org.npsnet.xrti.proxies
Class HLAparameterHandleValuePair

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

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

Pairs a parameter handle with an encoded value.

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

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

Field Detail

parameterHandle

private long parameterHandle
Parameter handle.


value

private byte[] value
Encoded value.

Constructor Detail

HLAparameterHandleValuePair

public HLAparameterHandleValuePair()
Default constructor.


HLAparameterHandleValuePair

public HLAparameterHandleValuePair(long pParameterHandle,
                                   byte[] pValue)
Constructor.

Parameters:
pParameterHandle - the value of the parameterHandle field
pValue - the value of the value field

HLAparameterHandleValuePair

public HLAparameterHandleValuePair(HLAparameterHandleValuePair other)
Copy constructor.

Parameters:
other - the other HLAparameterHandleValuePair to copy
Method Detail

decode

public static HLAparameterHandleValuePair decode(HLAEncodingInputStream hlaeis)
                                          throws java.io.IOException
Reads and returns a HLAparameterHandleValuePair 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 HLAparameterHandleValuePair 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 HLAparameterHandleValuePair.

Returns:
a string representation of this HLAparameterHandleValuePair

setParameterHandle

public void setParameterHandle(long pParameterHandle)
Sets the value of the parameterHandle field.

Parameters:
pParameterHandle - the new value for the field

getParameterHandle

public long getParameterHandle()
Returns the value of the parameterHandle field.

Returns:
the value of the parameterHandle 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