|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.npsnet.xrti.XRTIFederateHandle
Type-safe handle for a federate. Generally these are created by the RTI and passed to the user.
| Field Summary | |
private long |
identifier
The federate identifier. |
| Constructor Summary | |
protected |
XRTIFederateHandle(long pIdentifier)
Constructor. |
| Method Summary | |
void |
encode(byte[] buffer,
int offset)
Encodes this federate handle, placing the result into the specified byte array. |
int |
encodedLength()
Returns the encoded length of this federate handle. |
boolean |
equals(java.lang.Object otherFederateHandle)
Tests this federate handle for equality with another. |
protected long |
getIdentifier()
Returns this handle's unique identifier. |
int |
hashCode()
Computes and returns the hash code corresponding to this federate handle. |
java.lang.String |
toString()
Returns a string representation of this federate handle. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
private long identifier
| Constructor Detail |
protected XRTIFederateHandle(long pIdentifier)
pIdentifier - the federate identifier| Method Detail |
protected long getIdentifier()
public boolean equals(java.lang.Object otherFederateHandle)
equals in interface FederateHandleotherFederateHandle - the other federate handle to compare this to
true if this refers to the same federate as other
handle, false otherwisepublic int hashCode()
hashCode in interface FederateHandlepublic int encodedLength()
encodedLength in interface FederateHandle
public void encode(byte[] buffer,
int offset)
encode in interface FederateHandlebuffer - the buffer to hold the encoded federate handleoffset - the offset within the buffer at which to store the
encoded handlepublic java.lang.String toString()
toString in interface FederateHandle
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||