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. More...
 
int value ()
 Get the int value of this enumerated DataType. More...
 

Static Public Member Functions

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

Public Attributes

 SET
 = 0, Set More...
 
 PAR
 = 1, Parameter More...
 
 VAR
 = 2, Variable More...
 
 EQU
 = 3, Equation More...
 
 ALIAS
 = 4, Alias More...
 
 MAX
 = 5, max More...
 

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

◆ VAR

com.gams.api.GAMSGlobals.DataType.VAR

= 2, Variable