org.npsnet.xrti
Class XRTIParameterHandleFactory

java.lang.Object
  extended byorg.npsnet.xrti.XRTIParameterHandleFactory
All Implemented Interfaces:
ParameterHandleFactory, java.io.Serializable

public class XRTIParameterHandleFactory
extends java.lang.Object
implements ParameterHandleFactory

A factory for ParameterHandles. This factory is used only (outside of the run-time infrastructure) to create ParameterHandles received as attribute or parameter values.

Author:
Andrzej Kapolka
See Also:
Serialized Form

Constructor Summary
XRTIParameterHandleFactory()
           
 
Method Summary
 ParameterHandle decode(byte[] buffer, int offset)
          Decodes a parameter handle stored within the specified buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XRTIParameterHandleFactory

public XRTIParameterHandleFactory()
Method Detail

decode

public ParameterHandle decode(byte[] buffer,
                              int offset)
                       throws CouldNotDecode,
                              FederateNotExecutionMember
Decodes a parameter handle stored within the specified buffer.

Specified by:
decode in interface ParameterHandleFactory
Parameters:
buffer - the buffer that contains the encoded parameter handle
offset - the offset within the buffer at which the parameter handle is stored
Returns:
a ParameterHandle representing the decoded handle
Throws:
CouldNotDecode - if the parameter handle could not be decoded
FederateNotExecutionMember - if the federate is not a member of the execution