.. java:import:: java.nio ByteBuffer .. java:import:: java.util Map .. java:import:: com.sun.jna Pointer .. java:import:: com.sun.jna.platform.win32 Kernel32 .. java:import:: com.sun.jna.platform.win32 WinBase .. java:import:: com.sun.jna.platform.win32 WinDef .. java:import:: com.sun.jna.ptr IntByReference AMPLSigSend =========== .. java:package:: com.ampl :noindex: .. java:type:: public class AMPLSigSend Small utility class to handle sending signals to the AMPL process (used in windows only) Fields ------ SIGINT ^^^^^^ .. java:field:: static final int SIGINT :outertype: AMPLSigSend SIGTERM ^^^^^^^ .. java:field:: static final int SIGTERM :outertype: AMPLSigSend initialized ^^^^^^^^^^^ .. java:field:: boolean initialized :outertype: AMPLSigSend readPipe ^^^^^^^^ .. java:field:: HANDLE readPipe :outertype: AMPLSigSend writePipe ^^^^^^^^^ .. java:field:: HANDLE writePipe :outertype: AMPLSigSend Methods ------- closeSigPipes ^^^^^^^^^^^^^ .. java:method:: public void closeSigPipes() :outertype: AMPLSigSend Close the pipes initializeSWPipe ^^^^^^^^^^^^^^^^ .. java:method:: public boolean initializeSWPipe() :outertype: AMPLSigSend Initialize the pipes to be used when communicating with AMPL :return: True if successful isInitialized ^^^^^^^^^^^^^ .. java:method:: public boolean isInitialized() :outertype: AMPLSigSend Return true if the pipes are correctly initialized setSigEnvironment ^^^^^^^^^^^^^^^^^ .. java:method:: public void setSigEnvironment(Map e) :outertype: AMPLSigSend Adds the environment variable needed by AMPL to communicate with the pipes to the passed map sigint ^^^^^^ .. java:method:: public boolean sigint() :outertype: AMPLSigSend Signals AMPL to interrupt :return: True if successful sigterm ^^^^^^^ .. java:method:: public boolean sigterm() :outertype: AMPLSigSend Signals AMPL to terminate :return: True if successful