hla.rti
Interface AttributeHandle

All Superinterfaces:
java.io.Serializable

public interface AttributeHandle
extends java.io.Serializable

Type-safe handle for an attribute. Generally these are created by the RTI and passed to the user.

Author:
DMSO

Method Summary
 void encode(byte[] buffer, int offset)
          Encodes this attribute handle, placing the result into the specified array.
 int encodedLength()
          Returns the encoded length of this attribute handle.
 boolean equals(java.lang.Object otherAttributeHandle)
          Checks this attribute handle for equality with another.
 int hashCode()
          Computes and returns the hash code of this attribute handle.
 java.lang.String toString()
          Returns a string representation of this attribute handle.
 

Method Detail

equals

public boolean equals(java.lang.Object otherAttributeHandle)
Checks this attribute handle for equality with another.

Parameters:
otherAttributeHandle - the other attribute handle to compare this to
Returns:
true if this refers to the same attribute as the other handle, false otherwise

hashCode

public int hashCode()
Computes and returns the hash code of this attribute handle.

Returns:
the hash code corresponding to this attribute handle

encodedLength

public int encodedLength()
Returns the encoded length of this attribute handle.

Returns:
the encoded length of this attribute handle, in bytes

encode

public void encode(byte[] buffer,
                   int offset)
Encodes this attribute handle, placing the result into the specified array.

Parameters:
buffer - the buffer in which to place the encoded handle
offset - the buffer offset at which to store the data

toString

public java.lang.String toString()
Returns a string representation of this attribute handle.

Returns:
a string representation of this attribute handle