AMPLSigSend

public class AMPLSigSend

Small utility class to handle sending signals to the AMPL process (used in windows only)

Fields

SIGINT

static final int SIGINT

SIGTERM

static final int SIGTERM

initialized

boolean initialized

readPipe

HANDLE readPipe

writePipe

HANDLE writePipe

Methods

closeSigPipes

public void closeSigPipes()

Close the pipes

initializeSWPipe

public boolean initializeSWPipe()

Initialize the pipes to be used when communicating with AMPL

Returns:True if successful

isInitialized

public boolean isInitialized()

Return true if the pipes are correctly initialized

setSigEnvironment

public void setSigEnvironment(Map<String, String> e)

Adds the environment variable needed by AMPL to communicate with the pipes to the passed map

sigint

public boolean sigint()

Signals AMPL to interrupt

Returns:True if successful

sigterm

public boolean sigterm()

Signals AMPL to terminate

Returns:True if successful