Package pulse.tasks.logs
Enum Status
- java.lang.Object
-
- java.lang.Enum<Status>
-
- pulse.tasks.logs.Status
-
- All Implemented Interfaces:
Serializable,Comparable<Status>
public enum Status extends Enum<Status>
An enum that represents the different states in which aSearchTaskcan be.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AMBIGUOUSTask has finished, but the results cannot be considered reliable (perhaps, due to large scatter of data points).AWAITING_TERMINATIONTermination requested.DONETask successfully finished.EXECUTION_ERRORAn error has occurred during execution.FAILEDTask has finished without errors, however failing to meet a statistical criterion.IN_PROGRESSThe task is being executed.INCOMPLETENot all necessary details have been uploaded to aSearchTaskand that it cannot be executed yet.QUEUEDTask has been queued and is waiting to be executed.READYEverything seems to be in order and the task can now be executed.TERMINATEDTask terminatedTIMEOUTThe iteration limit has been reached and the task aborted.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckProblemStatementSet()ColorgetColor()StringgetDetailedMessage()DetailsgetDetails()StringgetMessage()voidsetDetailedMessage(String str)voidsetDetails(Details details)StringtoString()static Statustroubleshoot(SolverException e1)static StatusvalueOf(String name)Returns the enum constant of this type with the specified name.static Status[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INCOMPLETE
public static final Status INCOMPLETE
Not all necessary details have been uploaded to aSearchTaskand that it cannot be executed yet.
-
READY
public static final Status READY
Everything seems to be in order and the task can now be executed.
-
IN_PROGRESS
public static final Status IN_PROGRESS
The task is being executed.
-
DONE
public static final Status DONE
Task successfully finished.
-
EXECUTION_ERROR
public static final Status EXECUTION_ERROR
An error has occurred during execution.
-
AWAITING_TERMINATION
public static final Status AWAITING_TERMINATION
Termination requested.
-
TERMINATED
public static final Status TERMINATED
Task terminated
-
QUEUED
public static final Status QUEUED
Task has been queued and is waiting to be executed.
-
AMBIGUOUS
public static final Status AMBIGUOUS
Task has finished, but the results cannot be considered reliable (perhaps, due to large scatter of data points).
-
TIMEOUT
public static final Status TIMEOUT
The iteration limit has been reached and the task aborted.
-
FAILED
public static final Status FAILED
Task has finished without errors, however failing to meet a statistical criterion.
-
-
Method Detail
-
values
public static Status[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Status c : Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Status valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getColor
public final Color getColor()
-
getDetails
public Details getDetails()
-
setDetails
public void setDetails(Details details)
-
getDetailedMessage
public String getDetailedMessage()
-
setDetailedMessage
public void setDetailedMessage(String str)
-
checkProblemStatementSet
public boolean checkProblemStatementSet()
-
getMessage
public String getMessage()
-
troubleshoot
public static Status troubleshoot(SolverException e1)
-
-