|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthla.rti.TransportationType
Represents a transportation type.
| Field Summary | |
static TransportationType |
HLA_BEST_EFFORT
The best-effort transportation type. |
static TransportationType |
HLA_RELIABLE
The reliable transportation type. |
| Constructor Summary | |
TransportationType(TransportationType otherTransportationType)
Copy constructor. |
|
| Method Summary | |
static TransportationType |
decode(byte[] buffer,
int offset)
Decodes a transportation type stored within the specified buffer and returns a corresponding TransportationType instance. |
void |
encode(byte[] buffer,
int offset)
Encodes this transportation type, placing the result into the specified buffer. |
int |
encodedLength()
Returns the encoded length of this transportation type. |
boolean |
equals(java.lang.Object otherTransportationType)
Compares this transportation type for equality with another. |
int |
hashCode()
Computes and returns a hash code corresponding to this transportation type. |
java.lang.String |
toString()
Returns a string representation of this transportation type. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final TransportationType HLA_RELIABLE
public static final TransportationType HLA_BEST_EFFORT
| Constructor Detail |
public TransportationType(TransportationType otherTransportationType)
otherTransportationType - the transportation type to copy| Method Detail |
public static TransportationType decode(byte[] buffer,
int offset)
throws CouldNotDecode
TransportationType instance.
buffer - the buffer in which the encoded value is storedoffset - the offset within the buffer at which the encoded
value is located
TransportationType corresponding to the decoded
value
CouldNotDecode - if the transportation type could not be decodedpublic boolean equals(java.lang.Object otherTransportationType)
otherTransportationType - the other transportation type
true if the two transportation types are equal,
false otherwisepublic int hashCode()
public int encodedLength()
public void encode(byte[] buffer,
int offset)
buffer - the buffer in which to place the encoded valueoffset - the offset within the buffer at which to store the encoded
valuepublic java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||