org.npsnet.xrti
Class XRTIDimensionHandleFactory

java.lang.Object
  extended byorg.npsnet.xrti.XRTIDimensionHandleFactory
All Implemented Interfaces:
DimensionHandleFactory, java.io.Serializable

public class XRTIDimensionHandleFactory
extends java.lang.Object
implements DimensionHandleFactory

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

Author:
Andrzej Kapolka
See Also:
Serialized Form

Constructor Summary
XRTIDimensionHandleFactory()
           
 
Method Summary
 DimensionHandle decode(byte[] buffer, int offset)
          Decodes a dimension handle within the specified buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XRTIDimensionHandleFactory

public XRTIDimensionHandleFactory()
Method Detail

decode

public DimensionHandle decode(byte[] buffer,
                              int offset)
                       throws CouldNotDecode,
                              FederateNotExecutionMember
Decodes a dimension handle within the specified buffer.

Specified by:
decode in interface DimensionHandleFactory
Parameters:
buffer - the buffer containing the encoded handle
offset - the location of the handle within the buffer
Returns:
the DimensionHandle instance corresponding to the decoded handle
Throws:
CouldNotDecode - if the dimension handle could not be decoded
FederateNotExecutionMember - if the federate is not a member of the execution