.. java:import:: java.io IOException .. java:import:: com.ampl AMPLProcess.ReadException Engine ====== .. java:package:: com.ampl :noindex: .. java:type:: class Engine Main engine class. Connects to ampl process and so forth. :author: Christian Fields ------ currentSource ^^^^^^^^^^^^^ .. java:field:: Source currentSource :outertype: Engine Constructors ------------ Engine ^^^^^^ .. java:constructor:: public Engine(Environment environment, AMPL parentAMPL) throws IOException, LicenseException :outertype: Engine Constructor :param environment: Environment(working directory and others) :param parentAMPL: Parent ampl (to get the error handler and others) :throws LicenseException: :throws IOException: Methods ------- getAmpl ^^^^^^^ .. java:method:: public AMPL getAmpl() :outertype: Engine getProcess ^^^^^^^^^^ .. java:method:: AMPLProcess getProcess() :outertype: Engine getVersion ^^^^^^^^^^ .. java:method:: int getVersion() :outertype: Engine innerDiagnose ^^^^^^^^^^^^^ .. java:method:: void innerDiagnose(RuntimeException e) :outertype: Engine interpret ^^^^^^^^^ .. java:method:: AMPLOutputs interpret(Source s) :outertype: Engine interpret ^^^^^^^^^ .. java:method:: void interpret(Source s, OutputHandler output) :outertype: Engine interpret ^^^^^^^^^ .. java:method:: AMPLOutputs interpret(String s) :outertype: Engine To be used for service calls to AMPL :param s: Source :return: Outputs interpretAsync ^^^^^^^^^^^^^^ .. java:method:: void interpretAsync(Source s, Runnable callback, OutputHandler output) :outertype: Engine interrupt ^^^^^^^^^ .. java:method:: public void interrupt() :outertype: Engine isBusy ^^^^^^ .. java:method:: public boolean isBusy() :outertype: Engine isRunning ^^^^^^^^^ .. java:method:: public boolean isRunning() :outertype: Engine onBeginSolve ^^^^^^^^^^^^ .. java:method:: public void onBeginSolve() :outertype: Engine setDontSkipZeroRows ^^^^^^^^^^^^^^^^^^^ .. java:method:: void setDontSkipZeroRows(boolean restore) :outertype: Engine start ^^^^^ .. java:method:: public boolean start() throws IOException, LicenseException :outertype: Engine stop ^^^^ .. java:method:: public void stop() :outertype: Engine