| java.lang.Object org.cougaar.core.examples.mobility.ldm.StepStatus
StepStatus | final public class StepStatus implements Serializable(Code) | | Mutable status of step processing.
|
Field Summary | |
final public static int | FAILURE | final public static StepStatus | NONE Dummy results for use instead of null, to indicate
that there are no current results. | final public static int | PAUSED | final public static int | RUNNING | final public static int | SUCCESS | final public static int | TIMEOUT | final public static int | UNSEEN State constants. |
Method Summary | |
public boolean | equals(Object o) | public long | getEndTime() If the state is {SUCCESS, FAILURE, or TIMEOUT}, get the
time in milliseconds when the run started, otherwise -1
is returned. | public MoveAgent.Status | getMoveStatus() If the state is {SUCCESS or FAILURE}, get the
move status if available. | public long | getStartTime() If the state is {RUNNING, SUCCESS, FAILURE, or TIMEOUT},
get the time in milliseconds when the run started,
otherwise -1 is returned. | public int | getState() Get the state code (RUNNING, TIMEOUT, etc). | public String | getStateAsString() Get a String representation of the state code. | public int | hashCode() | public String | toString() |
FAILURE | final public static int FAILURE(Code) | | |
NONE | final public static StepStatus NONE(Code) | | Dummy results for use instead of null, to indicate
that there are no current results.
|
PAUSED | final public static int PAUSED(Code) | | |
RUNNING | final public static int RUNNING(Code) | | |
SUCCESS | final public static int SUCCESS(Code) | | |
TIMEOUT | final public static int TIMEOUT(Code) | | |
UNSEEN | final public static int UNSEEN(Code) | | State constants.
|
getEndTime | public long getEndTime()(Code) | | If the state is {SUCCESS, FAILURE, or TIMEOUT}, get the
time in milliseconds when the run started, otherwise -1
is returned.
|
getMoveStatus | public MoveAgent.Status getMoveStatus()(Code) | | If the state is {SUCCESS or FAILURE}, get the
move status if available.
|
getStartTime | public long getStartTime()(Code) | | If the state is {RUNNING, SUCCESS, FAILURE, or TIMEOUT},
get the time in milliseconds when the run started,
otherwise -1 is returned.
|
getState | public int getState()(Code) | | Get the state code (RUNNING, TIMEOUT, etc).
|
getStateAsString | public String getStateAsString()(Code) | | Get a String representation of the state code.
|
hashCode | public int hashCode()(Code) | | |
|
|