hla.rti
Interface InteractionClassHandle

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
XRTIInteractionClassHandle

public interface InteractionClassHandle
extends java.io.Serializable

Type-safe handle for an interaction class. Generally these are created by the run-time infrastructure and passed to the user.

Author:
DMSO

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

Method Detail

equals

public boolean equals(java.lang.Object otherInteractionClassHandle)
Checks this interaction class handle for equality with another.

Parameters:
otherInteractionClassHandle - the other interaction class handle to compare this to
Returns:
true if this refers to the same interaction class as other handle, false otherwise

hashCode

public int hashCode()
Computes and returns a hash code corresponding to this interaction class.

Returns:
a hash code corresponding to this interaction class

encodedLength

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

Returns:
the encoded length of this interaction class handle (in bytes)

encode

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

Parameters:
buffer - the buffer to contain the encoded value
offset - the offset within the buffer at which to store the value

toString

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

Returns:
a string representation of this interaction class handle