Package com.articulate.sigma.tp
Enum Class SZSStatus
- All Implemented Interfaces:
Serializable,Comparable<SZSStatus>,Constable
Enumeration of SZS (TPTP Standard for System status values) statuses.
Based on the TPTP SZS Ontology: https://tptp.org/UserDocs/SZSOntology/
These statuses are used to represent the outcome of automated theorem prover runs.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumCategory groupings for SZS statusesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic SZSStatusfromExitCode(int exitCode, boolean timedOut) Determine SZS status from process exit code and timeout flag.static SZSStatusfromString(String s) Parse a string to an SZSStatus enum value.Get CSS class name for UI styling based on categorybooleanisError()booleanbooleanbooleantoString()static SZSStatusReturns the enum constant of this class with the specified name.static SZSStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
THEOREM
-
UNSATISFIABLE
-
SATISFIABLE
-
COUNTER_SATISFIABLE
-
EQUIVALENT
-
EQUI_SATISFIABLE
-
TAUTOLOGY
-
CONTRADICTORY
-
UNKNOWN
-
GAVE_UP
-
INCOMPLETE
-
STOPPED
-
TIMEOUT
-
RESOURCE_OUT
-
USER
-
INPUT_ERROR
-
SYNTAX_ERROR
-
TYPE_ERROR
-
SEMANTIC_ERROR
-
OS_ERROR
-
INAPPROPRIATE
-
ERROR
-
NOT_RUN
-
CRASHED
-
OUTPUT_PARSE_ERROR
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getTptpName
- Returns:
- The TPTP standard name for this status (e.g., "Theorem", "Timeout")
-
getCategory
- Returns:
- The category this status belongs to
-
getDescription
- Returns:
- Human-readable description of this status
-
isSuccess
public boolean isSuccess()- Returns:
- true if this status indicates successful proof/determination
-
isFailure
public boolean isFailure()- Returns:
- true if this status indicates failure (timeout, resource limit, etc.)
-
isError
public boolean isError()- Returns:
- true if this status indicates an error occurred
-
isUnknown
public boolean isUnknown()- Returns:
- true if this status indicates unknown outcome
-
fromString
Parse a string to an SZSStatus enum value. Handles various formats including with/without "SZS status" prefix.- Parameters:
s- The string to parse (case-insensitive)- Returns:
- The matching SZSStatus, or UNKNOWN if not recognized
-
fromExitCode
Determine SZS status from process exit code and timeout flag. Used when no explicit SZS status is found in output.- Parameters:
exitCode- The process exit codetimedOut- Whether the process timed out- Returns:
- Inferred SZSStatus
-
getCssClass
Get CSS class name for UI styling based on category -
toString
-