Engine¶
-
class
Engine
¶ Main engine class. Connects to ampl process and so forth.
Author: Christian
Constructors¶
Engine¶
-
public
Engine
(Environment environment, AMPL parentAMPL)¶ Constructor
Parameters: - environment – Environment(working directory and others)
- parentAMPL – Parent ampl (to get the error handler and others)
Throws: - LicenseException –
- IOException –
Methods¶
getProcess¶
-
AMPLProcess
getProcess
()¶
innerDiagnose¶
-
void
innerDiagnose
(RuntimeException e)¶
interpret¶
-
AMPLOutputs
interpret
(Source s)¶
interpret¶
-
void
interpret
(Source s, OutputHandler output)¶
interpret¶
-
AMPLOutputs
interpret
(String s)¶ To be used for service calls to AMPL
Parameters: - s – Source
Returns: Outputs
interpretAsync¶
-
void
interpretAsync
(Source s, Runnable callback, OutputHandler output)¶