org.npsnet.xrti.proxies
Class HLAsharingType

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

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

Sharing type to be used for sending attributes or interactions.

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

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

Field Detail

Publish

public static final HLAsharingType Publish
Enumerator #0.


Subscribe

public static final HLAsharingType Subscribe
Enumerator #1.


PublishSubscribe

public static final HLAsharingType PublishSubscribe
Enumerator #2.


Neither

public static final HLAsharingType Neither
Enumerator #3.


value

private int value
The value of the instance.

Constructor Detail

HLAsharingType

public HLAsharingType()
Default constructor (Publish).


HLAsharingType

public HLAsharingType(HLAsharingType other)
Copy constructor.

Parameters:
other - the other HLAsharingType to copy

HLAsharingType

private HLAsharingType(int pValue)
Private constructor.

Parameters:
pValue - the instance value
Method Detail

decode

public static HLAsharingType decode(HLAEncodingInputStream hlaeis)
                             throws java.io.IOException
Reads and returns a HLAsharingType 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 HLAsharingType for equality with another.

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

hashCode

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

Returns:
a hash code corresponding to this HLAsharingType

encode

public void encode(HLAEncodingOutputStream hlaeos)
            throws java.io.IOException
Writes this HLAsharingType 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 HLAsharingType

Returns:
a string representation of this HLAsharingType