org.npsnet.xrti
Class XRTIInteractionClassHandleFactory

java.lang.Object
  extended byorg.npsnet.xrti.XRTIInteractionClassHandleFactory
All Implemented Interfaces:
InteractionClassHandleFactory, java.io.Serializable

public class XRTIInteractionClassHandleFactory
extends java.lang.Object
implements InteractionClassHandleFactory

This factory is used only (outside of the RTI) to create InteractionClassHandles corresponding to interaction class handles received as attribute or parameter values.

Author:
Andrzej Kapolka
See Also:
Serialized Form

Constructor Summary
XRTIInteractionClassHandleFactory()
           
 
Method Summary
 InteractionClassHandle decode(byte[] buffer, int offset)
          Decodes an interaction class handle contained within the specified buffer, returning a corresponding instance of InteractionClassHandle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XRTIInteractionClassHandleFactory

public XRTIInteractionClassHandleFactory()
Method Detail

decode

public InteractionClassHandle decode(byte[] buffer,
                                     int offset)
                              throws CouldNotDecode,
                                     FederateNotExecutionMember
Decodes an interaction class handle contained within the specified buffer, returning a corresponding instance of InteractionClassHandle.

Specified by:
decode in interface InteractionClassHandleFactory
Parameters:
buffer - the buffer that contains the encoded handle
offset - the offset within the buffer at which the handle is stored
Returns:
an instance of InteractionClassHandle corresponding to the encoded handle
Throws:
CouldNotDecode - if the interaction class handle could not be decoded
FederateNotExecutionMember - if the federate is not a member of the execution