Loading...
Searching...
No Matches
com.gams.api.GAMSGlobals.DataType Enum Reference

GAMS Data Types. More...

Public Member Functions

boolean equals (DataType another)
 Compare if the parameter is of the same DataType.
 
int value ()
 Get the int value of this enumerated DataType.
 

Static Public Member Functions

static DataType lookup (int value)
 Lookup all data types used by GAMS.
 

Public Attributes

 SET
 = 0, Set

 
 PAR
 = 1, Parameter

 
 VAR
 = 2, Variable

 
 EQU
 = 3, Equation

 
 ALIAS
 = 4, Alias

 
 MAX
 = 5, max

 
 UNDEFINED_TYPE
 >= 6, undefined datatype
 

Detailed Description

GAMS Data Types.

See also
GAMSSymbol
GAMSEquation
GAMSSet
GAMSParameter
GAMSVariable

Member Function Documentation

◆ equals()

boolean com.gams.api.GAMSGlobals.DataType.equals ( DataType  another)

Compare if the parameter is of the same DataType.

Parameters
anotherGAMS data type
Returns
true if the parameter is of the same data type, false otherwise.

◆ lookup()

static DataType com.gams.api.GAMSGlobals.DataType.lookup ( int  value)
static

Lookup all data types used by GAMS.

Parameters
valuea value to lookup
Returns
the enumerated DataType that has the specified value, UNDEFINED_TYPE if the specified value is not found.

◆ value()

int com.gams.api.GAMSGlobals.DataType.value ( )

Get the int value of this enumerated DataType.

Returns
the int value of the DataType

Member Data Documentation

◆ ALIAS

com.gams.api.GAMSGlobals.DataType.ALIAS

= 4, Alias

◆ EQU

com.gams.api.GAMSGlobals.DataType.EQU

= 3, Equation

◆ MAX

com.gams.api.GAMSGlobals.DataType.MAX

= 5, max

◆ PAR

com.gams.api.GAMSGlobals.DataType.PAR

= 1, Parameter

◆ SET

com.gams.api.GAMSGlobals.DataType.SET

= 0, Set

◆ UNDEFINED_TYPE

com.gams.api.GAMSGlobals.DataType.UNDEFINED_TYPE

>= 6, undefined datatype

◆ VAR

com.gams.api.GAMSGlobals.DataType.VAR

= 2, Variable