Representation of a single record of a GAMSSymbol instance. More...

Public Member Functions | |
void | dispose () |
Release external resources hold by non-java library. | |
logical | equals (any object) |
Indicates whether some other object is "equal to" this one. | |
integer | hashCode () |
Returns a hash code value for the object. | |
logical | isDisposed () |
Inquire if this record has already been disposed. | |
string | key (integer index) |
Retrieve key of GAMSSymbolRecord on position index. | |
logical | moveNext () |
Iterate to next GAMSSymbolRecord of GAMSSymbol using the current criterion. | |
logical | movePrevious () |
Iterate to previous GAMSSymbolRecord of GAMSSymbol using the current criterion. | |
Public Attributes | |
cell | keys |
(read only) keys of this GAMSSymbolRecord | |
Detailed Description
Representation of a single record of a GAMSSymbol instance.
Derived classes are GAMSEquationRecord, GAMSParameterRecord, GAMSSetRecord and GAMSVariableRecord.
- See also
- GAMSSymbol, GAMSSymbol.findRecord, GAMSSymbol.mergeRecord, GAMSSymbol.addRecord, GAMSSymbol.deleteRecord, GAMSSymbol.getFirstRecord, GAMSSymbol.getLastRecord, GAMSIterator.next, GAMSIterator.remove
Member Function Documentation
◆ dispose()
void Matlab.GAMS.GAMSSymbolRecord.dispose | ( | ) |
Release external resources hold by non-java library.
A subsequent call on the object after disposed potentially causes an unexpected error or exception. Call this method either when the object is no longer needed and/or when resource management is a critical issue in the application.
◆ equals()
logical Matlab.GAMS.GAMSSymbolRecord.equals | ( | any | object | ) |
Indicates whether some other object is "equal to" this one.
The two GAMSSymbolRecord instances are equivalent if and only if they are records of the same symbol and same internal reference.
Arguments:
- object: the reference object with which to compare
Return: true if this object is the same as the obj argument, false otherwise
◆ hashCode()
integer Matlab.GAMS.GAMSSymbolRecord.hashCode | ( | ) |
Returns a hash code value for the object.
Return: a hash code value for the object
◆ isDisposed()
logical Matlab.GAMS.GAMSSymbolRecord.isDisposed | ( | ) |
Inquire if this record has already been disposed.
Return: true if disposed, false otherwise
◆ key()
string Matlab.GAMS.GAMSSymbolRecord.key | ( | integer | index | ) |
Retrieve key of GAMSSymbolRecord on position index.
Arguments:
- index: Index position of key to be returned
Return: Key a position index
◆ moveNext()
logical Matlab.GAMS.GAMSSymbolRecord.moveNext | ( | ) |
Iterate to next GAMSSymbolRecord of GAMSSymbol using the current criterion.
In case of a specific criterion has been specified, such as retrieving record in GAMSSymbol that meets a slice criteria (GAMSSymbol.getFirstRecord) the method returns the next GAMSSymbolRecord that also meets the criteria. Otherwise the method returns the next sequential GAMSSymbolRecord.
Return: true if successfully moved to the next record, false otherwise
- See also
- GAMSSymbol.getFirstRecord, GAMSSymbol.getLastRecord
◆ movePrevious()
logical Matlab.GAMS.GAMSSymbolRecord.movePrevious | ( | ) |
Iterate to previous GAMSSymbolRecord of GAMSSymbol using the current criterion.
In case of a specific criterion has been specified, such as retrieving record in GAMSSymbol that meets a slice criteria (GAMSSymbol.getLastRecord) the method returns the previous GAMSSymbolRecord that also meets the criteria. Otherwise the method returns the previous sequential GAMSSymbolRecord.
Return: true if successfully moved to the previous record, false otherwise
- See also
- GAMSSymbol.getFirstRecord, GAMSSymbol.getLastRecord