hla.rti
Interface InteractionClassHandleFactory

All Superinterfaces:
java.io.Serializable

public interface InteractionClassHandleFactory
extends java.io.Serializable

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

Author:
DMSO

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

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.

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