Loading...
Searching...
No Matches

GAMSGlobals defines constants that are used by com.gams.api package. More...

Classes

enum  ArchType
 GAMS enumerated type of architecture. More...
 
enum  AttributeValue
 Atttribute Values as enumerated integer. More...
 
enum  DataType
 GAMS Data Types. More...
 
enum  DebugLevel
 Define GAMS Debug Level of different values and string representations. More...
 
enum  EquType
 Equation SubType. More...
 
enum  ExitCodeMessage
 The possible return codes of the GAMS compiler and execution system (cmexRC). More...
 
enum  ModelStat
 Model Solution Status. More...
 
enum  OSType
 GAMS enumerated type of operating system. More...
 
enum  SetType
 Set SubType. More...
 
enum  SolveStat
 Solver termination condition. More...
 
enum  SpecialValues
 Special GAMS Values used by GAMS Java API. More...
 
enum  SpecialValues_int
 Special GAMS Value as enumerated integer. More...
 
enum  UpdateAction
 What field to update. More...
 
enum  VarType
 Variable SubType. More...
 

Static Public Member Functions

static OSType getOSType ()
 Get the enumerated type of operating system.
 
static ArchType getArchType ()
 Get the enumerated type of architecture.
 
static void setScratchFilePrefix (String str)
 Set a file prefix name.
 
static void setWorkingDirectory (String str)
 Set a file prefix name.
 
static void setWorkingDirectoryPrefix (String str)
 Set a working directory prefix name.
 

Static Public Attributes

static final int MAXDIM = 20
 Maximum dimension allowed, currently 20.
 
static final int STR_LEN = 256
 Maximum length of String allowed, currently 256.
 
static final int MAX_NO_IDIR = 40
 Maximum input directories allowed, currently 40.
 
static final String EMPTY_STRING = new String()
 Immutable Java object represented an empty String.
 
static final String GAMS_CALLSTR = "gams"
 GAMS Call string ("gams")
 
static final String CHECKPOINT_FILE_EXTENSION = ".g00"
 GAMS Checkpoint file extension (".g00")
 
static final String GAMS_FILE_EXTENSION = ".gms"
 GAMS file extension (".gms")
 
static final String GDX_FILE_EXTENSION = ".gdx"
 GDX file extension (".gdx")
 
static final String LOG_FILE_EXTENSION = ".log"
 GAMS default log file extension (".log")
 
static final String OPT_FILE_EXTENSION = ".opt"
 OPT file extension (".opt")
 
static final String OUTPUT_FILE_EXTENSION = ".lst"
 GAMS default listing file extension (".lst")
 
static final String PARAMETER_FILE_EXTENSION = ".pf"
 GAMS parameter file extension (".pf")
 
static final String JOB_NAME_PREFIX = "gjo"
 Prefix file name for a GAMSJob ("gjo")
 
static final String DB_NAME_PREFIX = "gdb"
 Prefix file name for a GAMSDatabase ("gdb")
 
static final String CP_NAME_PREFIX = "gcp"
 Prefix file name for a GAMSCheckpoint ("gcp")
 
static final String MI_NAME_PREFIX = "gmi"
 Prefix file name for a GAMSModelInstance ("gmi")
 
static final String WINDOW_EXEC_EXTENSION = ".exe"
 Default windows execution file extension (".exe")
 
static final String FILE_SEPARATOR = System.getProperty("file.separator")
 Platform dependent file separator ("\" on windows and "/" on UNIX)
 
static final String PATH_SEPARATOR = System.getProperty("path.separator")
 Platform dependent path separator (";" on windows and ":" on UNIX)
 
static final String LINE_SEPARATOR = System.getProperty("line.separator")
 Platform dependent line separator (e.g.
 
static final String OS_NAME = System.getProperty("os.name").toLowerCase()
 Operating system name.
 
static String scratchFilePrefix = "_gams_java_"
 A (modifiable) file prefix used for automatically generating files.
 
static String workingDirectory = System.getProperty("java.io.tmpdir")
 A (modifiable) working directory, default value: java io's temporary directory, System.getProperty("java.io.tmpdir").
 
static String workingDirectoryPrefix = "gams_"
 A (modifiable) directory prefix used for creating temporary directory.
 

Detailed Description

GAMSGlobals defines constants that are used by com.gams.api package.

These constants include equation subtype, variable subtype, solver termination conditions, model solution status, and update action.

Member Function Documentation

◆ getArchType()

static ArchType com.gams.api.GAMSGlobals.getArchType ( )
static

Get the enumerated type of architecture.

See also
GAMSGlobals.ArchType

◆ getOSType()

static OSType com.gams.api.GAMSGlobals.getOSType ( )
static

Get the enumerated type of operating system.

See also
GAMSGlobals.OSType

◆ setScratchFilePrefix()

static void com.gams.api.GAMSGlobals.setScratchFilePrefix ( String  str)
static

Set a file prefix name.

◆ setWorkingDirectory()

static void com.gams.api.GAMSGlobals.setWorkingDirectory ( String  str)
static

Set a file prefix name.

◆ setWorkingDirectoryPrefix()

static void com.gams.api.GAMSGlobals.setWorkingDirectoryPrefix ( String  str)
static

Set a working directory prefix name.

Member Data Documentation

◆ CHECKPOINT_FILE_EXTENSION

final String com.gams.api.GAMSGlobals.CHECKPOINT_FILE_EXTENSION = ".g00"
static

GAMS Checkpoint file extension (".g00")

◆ CP_NAME_PREFIX

final String com.gams.api.GAMSGlobals.CP_NAME_PREFIX = "gcp"
static

Prefix file name for a GAMSCheckpoint ("gcp")

◆ DB_NAME_PREFIX

final String com.gams.api.GAMSGlobals.DB_NAME_PREFIX = "gdb"
static

Prefix file name for a GAMSDatabase ("gdb")

◆ EMPTY_STRING

final String com.gams.api.GAMSGlobals.EMPTY_STRING = new String()
static

Immutable Java object represented an empty String.

◆ FILE_SEPARATOR

final String com.gams.api.GAMSGlobals.FILE_SEPARATOR = System.getProperty("file.separator")
static

Platform dependent file separator ("\" on windows and "/" on UNIX)

◆ GAMS_CALLSTR

final String com.gams.api.GAMSGlobals.GAMS_CALLSTR = "gams"
static

GAMS Call string ("gams")

◆ GAMS_FILE_EXTENSION

final String com.gams.api.GAMSGlobals.GAMS_FILE_EXTENSION = ".gms"
static

GAMS file extension (".gms")

◆ GDX_FILE_EXTENSION

final String com.gams.api.GAMSGlobals.GDX_FILE_EXTENSION = ".gdx"
static

GDX file extension (".gdx")

◆ JOB_NAME_PREFIX

final String com.gams.api.GAMSGlobals.JOB_NAME_PREFIX = "gjo"
static

Prefix file name for a GAMSJob ("gjo")

◆ LINE_SEPARATOR

final String com.gams.api.GAMSGlobals.LINE_SEPARATOR = System.getProperty("line.separator")
static

Platform dependent line separator (e.g.

"\n" on UNIX)

◆ LOG_FILE_EXTENSION

final String com.gams.api.GAMSGlobals.LOG_FILE_EXTENSION = ".log"
static

GAMS default log file extension (".log")

◆ MAX_NO_IDIR

final int com.gams.api.GAMSGlobals.MAX_NO_IDIR = 40
static

Maximum input directories allowed, currently 40.

◆ MAXDIM

final int com.gams.api.GAMSGlobals.MAXDIM = 20
static

Maximum dimension allowed, currently 20.

◆ MI_NAME_PREFIX

final String com.gams.api.GAMSGlobals.MI_NAME_PREFIX = "gmi"
static

Prefix file name for a GAMSModelInstance ("gmi")

◆ OPT_FILE_EXTENSION

final String com.gams.api.GAMSGlobals.OPT_FILE_EXTENSION = ".opt"
static

OPT file extension (".opt")

◆ OS_NAME

final String com.gams.api.GAMSGlobals.OS_NAME = System.getProperty("os.name").toLowerCase()
static

Operating system name.

◆ OUTPUT_FILE_EXTENSION

final String com.gams.api.GAMSGlobals.OUTPUT_FILE_EXTENSION = ".lst"
static

GAMS default listing file extension (".lst")

◆ PARAMETER_FILE_EXTENSION

final String com.gams.api.GAMSGlobals.PARAMETER_FILE_EXTENSION = ".pf"
static

GAMS parameter file extension (".pf")

◆ PATH_SEPARATOR

final String com.gams.api.GAMSGlobals.PATH_SEPARATOR = System.getProperty("path.separator")
static

Platform dependent path separator (";" on windows and ":" on UNIX)

◆ scratchFilePrefix

String com.gams.api.GAMSGlobals.scratchFilePrefix = "_gams_java_"
static

A (modifiable) file prefix used for automatically generating files.

◆ STR_LEN

final int com.gams.api.GAMSGlobals.STR_LEN = 256
static

Maximum length of String allowed, currently 256.

◆ WINDOW_EXEC_EXTENSION

final String com.gams.api.GAMSGlobals.WINDOW_EXEC_EXTENSION = ".exe"
static

Default windows execution file extension (".exe")

◆ workingDirectory

String com.gams.api.GAMSGlobals.workingDirectory = System.getProperty("java.io.tmpdir")
static

A (modifiable) working directory, default value: java io's temporary directory, System.getProperty("java.io.tmpdir").

It will be used as parent directory of GAMSWorkspace's working directory in case the working directory is not specified by user.

See also
GAMSWorkspace
GAMSWorkspaceInfo

◆ workingDirectoryPrefix

String com.gams.api.GAMSGlobals.workingDirectoryPrefix = "gams_"
static

A (modifiable) directory prefix used for creating temporary directory.