hla.rti
Class RestoreFailureReason

java.lang.Object
  extended byhla.rti.RestoreFailureReason
All Implemented Interfaces:
java.io.Serializable

public final class RestoreFailureReason
extends java.lang.Object
implements java.io.Serializable

Represents a reason for failure to restore.

Author:
DMSO
See Also:
Serialized Form

Field Summary
static RestoreFailureReason FEDERATE_REPORTED_FAILURE
          The federate reported a failure.
static RestoreFailureReason FEDERATE_RESIGNED
          The federate had resigned from the federation.
static RestoreFailureReason RTI_DETECTED_FAILURE
          The run-time infrastructure detected a failure.
static RestoreFailureReason RTI_UNABLE_TO_RESTORE
          The run-time infrastructure was unable to restore the federate.
private  int value
          The value of the instance.
 
Constructor Summary
private RestoreFailureReason(int pValue)
          Private constructor.
  RestoreFailureReason(RestoreFailureReason otherRestoreFailureReason)
          Copy constructor.
 
Method Summary
 boolean equals(java.lang.Object otherRestoreFailureReason)
          Compares this restoration failure reason for equality with another.
 int hashCode()
          Computes and returns a hash code corresponding to this restoration failure reason.
 java.lang.String toString()
          Returns a string representation of this restoration failure reason.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

RTI_UNABLE_TO_RESTORE

public static final RestoreFailureReason RTI_UNABLE_TO_RESTORE
The run-time infrastructure was unable to restore the federate.


FEDERATE_REPORTED_FAILURE

public static final RestoreFailureReason FEDERATE_REPORTED_FAILURE
The federate reported a failure.


FEDERATE_RESIGNED

public static final RestoreFailureReason FEDERATE_RESIGNED
The federate had resigned from the federation.


RTI_DETECTED_FAILURE

public static final RestoreFailureReason RTI_DETECTED_FAILURE
The run-time infrastructure detected a failure.


value

private int value
The value of the instance.

Constructor Detail

RestoreFailureReason

public RestoreFailureReason(RestoreFailureReason otherRestoreFailureReason)
Copy constructor.

Parameters:
otherRestoreFailureReason - the restoration failure reason object to copy

RestoreFailureReason

private RestoreFailureReason(int pValue)
Private constructor.

Parameters:
pValue - the integer value corresponding to this restoration failure reason
Method Detail

equals

public boolean equals(java.lang.Object otherRestoreFailureReason)
Compares this restoration failure reason for equality with another.

Returns:
true if the two restoration failure reasons are equal, false otherwise

hashCode

public int hashCode()
Computes and returns a hash code corresponding to this restoration failure reason.

Returns:
a hash code corresponding to this restoration failure reason

toString

public java.lang.String toString()
Returns a string representation of this restoration failure reason.

Returns:
a string representation of this restoration failure reason