public final class ExecutionStatus
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static ExecutionStatus |
COMPLETED
The robot has completed executing.
|
static ExecutionStatus |
PENDING
The request request has been received, and that the robot is pending execution.
|
static ExecutionStatus |
RUNNING
Signals that the robot is currently executing.
|
static java.util.List |
STATUS_OBJECTS
A list of all the supported
ExecutionStatus types. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
|
java.lang.String |
getDescription()
Returns a short description of the execution status.
|
int |
getStatusCode()
Returns the status code for this execution status.
|
int |
hashCode()
Returns a hash code value for the object.
|
static ExecutionStatus |
parseExecutionStatus(int statusCode)
Returns the
ExecutionStatus corresponding to a given status code. |
static ExecutionStatus |
parseExecutionStatus(java.lang.String statusDescription)
Returns the
ExecutionStatus corresponding to a given event description. |
java.lang.Object |
readResolve()
Resolves this object correctly when serializing.
|
java.lang.String |
toString()
Returns a human readable string representation of this object.
|
public static final ExecutionStatus PENDING
public static final ExecutionStatus RUNNING
public static final ExecutionStatus COMPLETED
public static final java.util.List STATUS_OBJECTS
ExecutionStatus types.public static ExecutionStatus parseExecutionStatus(int statusCode)
ExecutionStatus corresponding to a given status code.statusCode - the status code to parse. It must be in the range 0-3 to be
accepted.ExecutionStatus corresponding to a given status code.java.lang.IllegalArgumentException - if the statusCode did not
correspond to a valid ExecutionStatus.getStatusCodepublic static ExecutionStatus parseExecutionStatus(java.lang.String statusDescription)
ExecutionStatus corresponding to a given event description.
The lookup is not case sensitive. The strings "pending" or "Pending"
will both return the same object, ExecutionStatus.PENDING.statusDescription - an event description string. It must correspond to a
description that can be returned by a valid ExecutionStatus.
The lookup is not case sensitive.ExecutionStatus corresponding to a given status description.java.lang.IllegalArgumentException - if the statusDescription did not
correspond to a valid ExecutionStatus.getDescription,
toStringpublic boolean equals(java.lang.Object obj)
Testing on object identity should generally be acceptable, because this is
a typesafe enumeration. However, that cannot be guaranteed to always hold true,
when comparing objects instantiated by different classloaders. This
method therefore test on the statusCode property.
equals in class java.lang.Objectobj - the reference object with which to compare.true if this object is the same as the obj
argument; false otherwise.public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getDescription()
public int getStatusCode()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object readResolve()
throws java.io.ObjectStreamException
ExecutionStatus object.java.io.ObjectStreamException - if the stream cannot be deserializedjava.io.InvalidObjectException - if this implementation did not support the given
status code.RoboSuite Java API, v9.7.7763