org.npsnet.xrti
Class XRTIFederateHandleFactory

java.lang.Object
  extended byorg.npsnet.xrti.XRTIFederateHandleFactory
All Implemented Interfaces:
FederateHandleFactory, java.io.Serializable

public class XRTIFederateHandleFactory
extends java.lang.Object
implements FederateHandleFactory

This factory is used only (outside of the RTI) to create FederateHandle objects corresponding to federate handles received as attribute or parameter values.

Author:
Andrzej Kapolka
See Also:
Serialized Form

Constructor Summary
XRTIFederateHandleFactory()
           
 
Method Summary
 FederateHandle decode(byte[] buffer, int offset)
          Decodes a federate handle within the specified buffer and returns a corresponding FederateHandle instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XRTIFederateHandleFactory

public XRTIFederateHandleFactory()
Method Detail

decode

public FederateHandle decode(byte[] buffer,
                             int offset)
                      throws CouldNotDecode,
                             FederateNotExecutionMember
Decodes a federate handle within the specified buffer and returns a corresponding FederateHandle instance.

Specified by:
decode in interface FederateHandleFactory
Parameters:
buffer - the buffer from which to decode the federate handle
offset - the offset within the buffer at which the encoded federate handle resides
Returns:
the new FederateHandle instance corresponding to the encoded handle
Throws:
CouldNotDecode - if the federate handle could not be decoded
FederateNotExecutionMember - if the federate is not a member of the execution