org.npsnet.xrti
Class XRTIAttributeHandleFactory

java.lang.Object
  extended byorg.npsnet.xrti.XRTIAttributeHandleFactory
All Implemented Interfaces:
AttributeHandleFactory, java.io.Serializable

public class XRTIAttributeHandleFactory
extends java.lang.Object
implements AttributeHandleFactory

The factory is used only (outside of the RTI) to create AttributeHandles received as attribute or parameter values.

Author:
Andrzej Kapolka
See Also:
Serialized Form

Constructor Summary
XRTIAttributeHandleFactory()
           
 
Method Summary
 AttributeHandle decode(byte[] buffer, int offset)
          Decodes an attribute handle, returning a new instance of AttributeHandle.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XRTIAttributeHandleFactory

public XRTIAttributeHandleFactory()
Method Detail

decode

public AttributeHandle decode(byte[] buffer,
                              int offset)
                       throws CouldNotDecode,
                              FederateNotExecutionMember
Decodes an attribute handle, returning a new instance of AttributeHandle.

Specified by:
decode in interface AttributeHandleFactory
Parameters:
buffer - the encoded attribute handle
offset - the offset of the handle data in the buffer
Returns:
an instance of AttributeHandle corresponding to the encoded handle
Throws:
CouldNotDecode - if the attribute handle could not be decoded
FederateNotExecutionMember - if the federate is not a member of the execution