Loading...
Searching...
No Matches
Define GAMS Debug Level of different values and string representations.
More...
|
boolean | equals (DebugLevel level) |
| Compare if the parameter is of the same debug level.
|
|
boolean | isLowerThan (DebugLevel level) |
| Compare if this debug level has lower level than the parameter.
|
|
boolean | isHigherThan (DebugLevel level) |
| Compare if this debug level has higher level than the parameter.
|
|
int | value () |
| Get the int value of this enumerated DebugLevel.
|
|
String | message () |
| Get the string representing the debug level of this enumerated DebugLevel instance.
|
|
|
| OFF =("off") |
| = 0 with string representation "off", No Debug
|
|
| KEEP_FILES_ON_ERROR =("keepFilesOnError") |
| = 1 with string representation "keepfiles", Keep temporary files only in case of an error/exception
|
|
| KEEP_FILES =("keepfiles") |
| = 2 with string representation "keepfiles", Keep temporary files
|
|
| SHOW_LOG =("showlog") |
| = 3 with string representation "showlog", Send GAMS log to standard output and keep temporary files
|
|
| VERBOSE =("verbose") |
| = 4 with string representation "verbose", Send highly technical info and GAMS log to standard output and keep temporary file
|
|
| UNDEFINED_LEVEL =("undefined") |
| >= 4 with string representation "undefined", Undefined variable type
|
|
Define GAMS Debug Level of different values and string representations.
When a com::gams::api::GAMSWorkspace
instance is created, it also allows an environment variable "GAMSOOAPIDEBUG" containing a String representing the DebugLevel to override the debug level that has been set from either a com::gams::api::GAMSWorkspaceInfo
instance or a String instance parameter of a {GAMSWorkspace} constructor.
- See also
- GAMSWorkspace
-
GAMSWorkspaceInfo
◆ equals()
boolean com.gams.api.GAMSGlobals.DebugLevel.equals |
( |
DebugLevel |
level | ) |
|
Compare if the parameter is of the same debug level.
- Parameters
-
- Returns
- true if the parameter is of the same debug level, false otherwise.
◆ isHigherThan()
boolean com.gams.api.GAMSGlobals.DebugLevel.isHigherThan |
( |
DebugLevel |
level | ) |
|
Compare if this debug level has higher level than the parameter.
- Parameters
-
- Returns
- true if this debug level has higher level than the parameter, false otherwise.
◆ isLowerThan()
boolean com.gams.api.GAMSGlobals.DebugLevel.isLowerThan |
( |
DebugLevel |
level | ) |
|
Compare if this debug level has lower level than the parameter.
- Parameters
-
- Returns
- true if this debug level has lower level than the parameter, false otherwise.
◆ lookup() [1/2]
static DebugLevel com.gams.api.GAMSGlobals.DebugLevel.lookup |
( |
int |
value | ) |
|
|
static |
Lookup all debug levels.
- Parameters
-
value | an int value to lookup |
- Returns
- the enumerated DebugLevel that has the specified value, or UNDEFINED_LEVEL if the specified value is not found.
◆ lookup() [2/2]
static DebugLevel com.gams.api.GAMSGlobals.DebugLevel.lookup |
( |
String |
value | ) |
|
|
static |
Lookup all debug level messages.
- Parameters
-
value | a String value to lookup |
- Returns
- the enumerated DebugLevel that has the specified message, or UNDEFINED_LEVEL if the specified value is not found.
◆ message()
String com.gams.api.GAMSGlobals.DebugLevel.message |
( |
| ) |
|
Get the string representing the debug level of this enumerated DebugLevel instance.
- Returns
- the debug level message
◆ value()
int com.gams.api.GAMSGlobals.DebugLevel.value |
( |
| ) |
|
Get the int value of this enumerated DebugLevel.
- Returns
- the int value of the DebugLevel
◆ KEEP_FILES
com.gams.api.GAMSGlobals.DebugLevel.KEEP_FILES =("keepfiles") |
= 2 with string representation "keepfiles", Keep temporary files
◆ KEEP_FILES_ON_ERROR
com.gams.api.GAMSGlobals.DebugLevel.KEEP_FILES_ON_ERROR =("keepFilesOnError") |
= 1 with string representation "keepfiles", Keep temporary files only in case of an error/exception
◆ OFF
com.gams.api.GAMSGlobals.DebugLevel.OFF =("off") |
= 0 with string representation "off", No Debug
◆ SHOW_LOG
com.gams.api.GAMSGlobals.DebugLevel.SHOW_LOG =("showlog") |
= 3 with string representation "showlog", Send GAMS log to standard output and keep temporary files
◆ UNDEFINED_LEVEL
com.gams.api.GAMSGlobals.DebugLevel.UNDEFINED_LEVEL =("undefined") |
>= 4 with string representation "undefined", Undefined variable type
◆ VERBOSE
com.gams.api.GAMSGlobals.DebugLevel.VERBOSE =("verbose") |
= 4 with string representation "verbose", Send highly technical info and GAMS log to standard output and keep temporary file