org.npsnet.xrti
Class XRTIObjectClassHandleFactory

java.lang.Object
  extended byorg.npsnet.xrti.XRTIObjectClassHandleFactory
All Implemented Interfaces:
ObjectClassHandleFactory, java.io.Serializable

public class XRTIObjectClassHandleFactory
extends java.lang.Object
implements ObjectClassHandleFactory

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

Author:
Andrzej Kapolka
See Also:
Serialized Form

Constructor Summary
XRTIObjectClassHandleFactory()
           
 
Method Summary
 ObjectClassHandle decode(byte[] buffer, int offset)
          Decodes an object class 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

XRTIObjectClassHandleFactory

public XRTIObjectClassHandleFactory()
Method Detail

decode

public ObjectClassHandle decode(byte[] buffer,
                                int offset)
                         throws CouldNotDecode,
                                FederateNotExecutionMember
Decodes an object class handle stored within the specified buffer.

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