Loading...
Searching...
No Matches
com.gams.api.GAMSEquation Class Reference

This is the representation of an equation symbol in GAMS. More...

Inheritance diagram for com.gams.api.GAMSEquation:
com.gams.api.GAMSSymbol< GAMSEquationRecord >

Public Member Functions

GAMSGlobals.EquType getEquType ()
 Get GAMS equation type.
 
- Public Member Functions inherited from com.gams.api.GAMSSymbol< GAMSEquationRecord >
getFirstRecord ()
 Get the first record of GAMSSymbol.
 
getFirstRecord (String ... slice)
 Retrieve the first record in GAMSSymbol that meets the slice criteria.
 
boolean equals (Object obj)
 Indicates whether some other object is "equal to" this one.
 
int hashCode ()
 Returns a hash code value for the object.
 
getLastRecord ()
 Get the last record of GAMSSymbol.
 
getLastRecord (String ... slice)
 Retrieve the last record in GAMSSymbol that meets the slice criteria.
 
findRecord (String ... keys)
 Find record in GAMSSymbol.
 
addRecord (Vector< String > keys)
 Add record T to GAMSSymbol.
 
addRecord (String ... keys)
 Add record T to GAMSSymbol.
 
mergeRecord (String ... keys)
 Find record T with specified keys in GAMSSymbol.
 
boolean deleteRecord (String ... keys)
 Delete record T from GAMSSymbol.
 
boolean clear ()
 Clear symbol by removing all records of this symbol.
 
void copySymbol (GAMSSymbol<?> target)
 Copy all records of this GAMSSymbol to target GAMSSymbol (if target had records, they will be deleted)
 
GAMSDatabase getDatabase ()
 Get GAMSDatabase containing GAMSSymbol.
 
int getDimension ()
 Get GAMSSymbol dimension.
 
String getName ()
 Get GAMSSymbol name.
 
String getText ()
 Get GAMSSymbol explanatory text.
 
int getNumberOfRecords ()
 Get the number of records of the GAMSSymbol.
 
List< Object > getDomains ()
 Retrieve domains of Symbol, each element is either a GAMSSet (real domain) or a String (relaxed domain).
 
List< String > getDomainsAsStrings ()
 Retrieve domains of Symbol, each element is a string.
 
boolean checkDomains ()
 Check all GAMSSymbolRecord instances of the symbol if all their records are within the specified domain of the symbol.
 
List< GAMSSymbolDomainViolationgetSymbolDomainViolations (int maxNoViolation)
 Check all GAMSSymbolRecord instances in the Symbol if they are within the specified domain of the symbol.
 
Iterator< T > iterator ()
 Returns an iterator over a set of elements of type T.
 

Additional Inherited Members

- Protected Member Functions inherited from com.gams.api.GAMSSymbol< GAMSEquationRecord >
 GAMSSymbol (GAMSDatabase database, long sPtr)
 Create a GAMS Symbol instance.
 
 GAMSSymbol (GAMSDatabase database, String identifier, int dimension, String explanatoryText)
 Create a GAMS Symbol instance.
 
abstract T CheckAndReturnRecord (long symIterPtr)
 This method checks if symbol pointer is valid.
 

Detailed Description

This is the representation of an equation symbol in GAMS.

It exists in a GAMSDatabase and contains GAMSEquationRecords which one can iterate through.

See also
GAMSDatabase
GAMSDatabase.addEquation(String, int, GAMSGlobals.EquType)
GAMSDatabase.addEquation(String, int, GAMSGlobals.EquType, String)
GAMSDatabase.addEquation(String, GAMSGlobals.EquType, String, Object[])
GAMSGlobals.EquType

Member Function Documentation

◆ getEquType()

GAMSGlobals.EquType com.gams.api.GAMSEquation.getEquType ( )

Get GAMS equation type.

Returns
SubType of this GAMSEquation object
See also
GAMSGlobals.EquType