AMPLParser

final class AMPLParser

Fields

SCANCURRENT

int SCANCURRENT

SCANMSG

String SCANMSG

SCANSEPARATORS

char[] SCANSEPARATORS

engine

Engine engine

Constructors

AMPLParser

AMPLParser(Engine engine)

Methods

GetSeparateSets

String[] GetSeparateSets(String indexing)

_displayDependencies

String[] _displayDependencies(String name)

assignOutput

void assignOutput(AMPLOutput o)

displaySimpleSet

String[] displaySimpleSet(String name)

getArityOfSet

int getArityOfSet(String name)

getEntityDeclaration

String getEntityDeclaration(String name, boolean isTable)

getEntityType

String getEntityType(String name)

getGenericDisplay

DataFrame getGenericDisplay(String... statements)

getGenericValues

Object[][][] getGenericValues(String name, String[] suffixes, String[] indexingSets)

getIndexLength

int getIndexLength(String setDeclaration)

getIndexarityOf

int getIndexarityOf(String name)

getIndexingSets

String[] getIndexingSets(String name, String declaration)

getIndicesInstances

Object[] getIndicesInstances(String[] setDeclarations)

getNextItemCommaSeparated

String getNextItemCommaSeparated()

getNextWithParenthesis

String getNextWithParenthesis()

getNextWithoutParenthesis

String getNextWithoutParenthesis()

getParameterInstances

boolean getParameterInstances(String name, Parameter pars)

getParameterInstance

Parameters:
  • name – Names of entities to display
  • con – Parameter to assign
Returns:

True if successful

getSetInstances

SetInstance[] getSetInstances(Set set)

getSingleExpressionValue

Object getSingleExpressionValue(String expression)

initialize

<T> void initialize(Entity<T> entity, String n, boolean TABLEENABLED)

Infrastructure: initialises entity

Parameters:
  • entity
  • n

scanHeader

int[] scanHeader()