org.npsnet.xrti.proxies
Class HLAownershipType

java.lang.Object
  extended byorg.npsnet.xrti.proxies.HLAownershipType
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class HLAownershipType
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

Ownership type to be used for sending attributes.

Author:
org.npsnet.xrti.utilities.ProxyCompiler
See Also:
Serialized Form

Field Summary
static HLAownershipType Acquire
          Enumerator #1.
static HLAownershipType Divest
          Enumerator #0.
static HLAownershipType DivestAcquire
          Enumerator #2.
static HLAownershipType NoTransfer
          Enumerator #3.
private  int value
          The value of the instance.
 
Constructor Summary
  HLAownershipType()
          Default constructor (Divest).
  HLAownershipType(HLAownershipType other)
          Copy constructor.
private HLAownershipType(int pValue)
          Private constructor.
 
Method Summary
static HLAownershipType decode(HLAEncodingInputStream hlaeis)
          Reads and returns a HLAownershipType from the specified stream.
 void encode(HLAEncodingOutputStream hlaeos)
          Writes this HLAownershipType to the specified stream.
 boolean equals(java.lang.Object other)
          Compares this HLAownershipType for equality with another.
 int hashCode()
          Computes and returns a hash code corresponding to this HLAownershipType.
 java.lang.String toString()
          Returns a string representation of this HLAownershipType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

Divest

public static final HLAownershipType Divest
Enumerator #0.


Acquire

public static final HLAownershipType Acquire
Enumerator #1.


DivestAcquire

public static final HLAownershipType DivestAcquire
Enumerator #2.


NoTransfer

public static final HLAownershipType NoTransfer
Enumerator #3.


value

private int value
The value of the instance.

Constructor Detail

HLAownershipType

public HLAownershipType()
Default constructor (Divest).


HLAownershipType

public HLAownershipType(HLAownershipType other)
Copy constructor.

Parameters:
other - the other HLAownershipType to copy

HLAownershipType

private HLAownershipType(int pValue)
Private constructor.

Parameters:
pValue - the instance value
Method Detail

decode

public static HLAownershipType decode(HLAEncodingInputStream hlaeis)
                               throws java.io.IOException
Reads and returns a HLAownershipType from the specified stream.

Parameters:
hlaeis - the input stream to read from
Returns:
the decoded value
Throws:
java.io.IOException - if an error occurs

equals

public boolean equals(java.lang.Object other)
Compares this HLAownershipType for equality with another.

Parameters:
other - the other HLAownershipType
Returns:
true if the two enumerated types are equal, false otherwise

hashCode

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

Returns:
a hash code corresponding to this HLAownershipType

encode

public void encode(HLAEncodingOutputStream hlaeos)
            throws java.io.IOException
Writes this HLAownershipType to the specified stream.

Parameters:
hlaeos - the stream to write to
Throws:
java.io.IOException - if an error occurs

toString

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

Returns:
a string representation of this HLAownershipType