org.npsnet.xrti
Class XRTIObjectInstanceHandleFactory

java.lang.Object
  extended byorg.npsnet.xrti.XRTIObjectInstanceHandleFactory
All Implemented Interfaces:
ObjectInstanceHandleFactory, java.io.Serializable

public class XRTIObjectInstanceHandleFactory
extends java.lang.Object
implements ObjectInstanceHandleFactory

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

Author:
Andrzej Kapolka
See Also:
Serialized Form

Constructor Summary
XRTIObjectInstanceHandleFactory()
           
 
Method Summary
 ObjectInstanceHandle decode(byte[] buffer, int offset)
          Decodes an object instance handle stored within the specified buffer, returning a new ObjectInstanceHandle instance representing the result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XRTIObjectInstanceHandleFactory

public XRTIObjectInstanceHandleFactory()
Method Detail

decode

public ObjectInstanceHandle decode(byte[] buffer,
                                   int offset)
                            throws CouldNotDecode,
                                   FederateNotExecutionMember
Decodes an object instance handle stored within the specified buffer, returning a new ObjectInstanceHandle instance representing the result.

Specified by:
decode in interface ObjectInstanceHandleFactory
Parameters:
buffer - the buffer that contains the encoded value
offset - the offset within the buffer at which the encoded value resides
Returns:
an ObjectInstanceHandle corresponding to the decoded value
Throws:
CouldNotDecode - if the handle could not be decoded
FederateNotExecutionMember - if the federate is not a member of the execution