hla.rti1516
Class TransportationType

java.lang.Object
  extended by hla.rti1516.TransportationType
All Implemented Interfaces:
Serializable

public class TransportationType
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
protected static int _nextToAssign
           
protected  int _value
           
static TransportationType HLA_BEST_EFFORT
           
static TransportationType HLA_RELIABLE
           
 
Constructor Summary
protected TransportationType()
          Private to class and subclasses
  TransportationType(TransportationType otherTransportationTypeValue)
          This is the only public constructor.
 
Method Summary
static TransportationType decode(byte[] buffer, int offset)
           
 void encode(byte[] buffer, int offset)
           
 int encodedLength()
           
 boolean equals(Object otherTransportationTypeValue)
          Allows comparison with other instance of same type.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_value

protected int _value

_nextToAssign

protected static int _nextToAssign

HLA_RELIABLE

public static final TransportationType HLA_RELIABLE

HLA_BEST_EFFORT

public static final TransportationType HLA_BEST_EFFORT
Constructor Detail

TransportationType

public TransportationType(TransportationType otherTransportationTypeValue)
This is the only public constructor. Each user-defined instance of a TransportationType must be initialized with one of the defined static values.

Parameters:
otherTransportationTypeValue - must be a defined static value or another instance.

TransportationType

protected TransportationType()
Private to class and subclasses

Method Detail

toString

public String toString()
Overrides:
toString in class Object
Returns:
String with value "TransportationType(n)" where n is value

equals

public boolean equals(Object otherTransportationTypeValue)
Allows comparison with other instance of same type.

Overrides:
equals in class Object
Returns:
true if supplied object is of type TransportationType and has same value; false otherwise

hashCode

public int hashCode()
Overrides:
hashCode in class Object

encodedLength

public int encodedLength()

encode

public void encode(byte[] buffer,
                   int offset)

decode

public static TransportationType decode(byte[] buffer,
                                        int offset)
                                 throws CouldNotDecode
Throws:
CouldNotDecode