#include <OSSolverAgent.h>
Public Member Functions | |
OSSolverAgent (string solverURI) | |
Default constructor. | |
~OSSolverAgent () | |
Class destructor. | |
string | solve (string osil, string osol) |
implement the solve() method which is a virtual function in OShL, this is synchronous | |
string | getJobID (string osol) |
implement the getJobID() method which is a virtual function in OShL | |
bool | send (string osil, string osol) |
implement the send() method which is a virtual function in OShL | |
string | kill (string osol) |
implement the kill() method which is a virtual function in OShL | |
string | retrieve (string osol) |
implement the retrieve() method which is a virtual function in OShL | |
string | knock (string ospl, string osol) |
implement the knock() method which is a virtual function in OShL | |
string | fileUpload (string osilFileName, string osil) |
implement the fileUpload() method which is a virtual function in OShL | |
Private Attributes | |
string | solverAddress |
solverAddress is the URI for the solver | |
unsigned short | solverPortNumber |
solverPortNumber is the port number for the sovler | |
string | postURI |
postURI is the path to the solver that follows the first / in the solverAddress |
The following key methods are invoked:
Definition at line 42 of file OSSolverAgent.h.
OSSolverAgent::OSSolverAgent | ( | string | solverURI | ) |
Default constructor.
solverURI | is the location of remote solver or scheduler |
Definition at line 28 of file OSSolverAgent.cpp.
References postURI, solverAddress, and solverPortNumber.
OSSolverAgent::~OSSolverAgent | ( | ) |
string OSSolverAgent::solve | ( | string | osil, | |
string | osol | |||
) |
implement the solve() method which is a virtual function in OShL, this is synchronous
osil | a string that holds the problem instance | |
osol | is a string of options for the solver |
Definition at line 53 of file OSSolverAgent.cpp.
References WSUtil::createSOAPMessage(), WSUtil::deSOAPify(), WSUtil::getOSxL(), postURI, WSUtil::sendSOAPMessage(), WSUtil::SOAPify(), solverAddress, and solverPortNumber.
Referenced by main(), solve(), and OSMatlab::solve().
string OSSolverAgent::getJobID | ( | string | osol | ) |
implement the getJobID() method which is a virtual function in OShL
osol | is the string with the options in OSoL format |
Definition at line 126 of file OSSolverAgent.cpp.
References WSUtil::createSOAPMessage(), WSUtil::deSOAPify(), WSUtil::getOSxL(), postURI, WSUtil::sendSOAPMessage(), WSUtil::SOAPify(), solverAddress, and solverPortNumber.
Referenced by getJobID(), and send().
bool OSSolverAgent::send | ( | string | osil, | |
string | osol | |||
) |
implement the send() method which is a virtual function in OShL
osil | is the string with the instance in OSiL format | |
osol | is the string with the options in OSoL format |
Definition at line 100 of file OSSolverAgent.cpp.
References WSUtil::createSOAPMessage(), WSUtil::deSOAPify(), WSUtil::getOSxL(), postURI, WSUtil::sendSOAPMessage(), WSUtil::SOAPify(), solverAddress, and solverPortNumber.
Referenced by send().
string OSSolverAgent::kill | ( | string | osol | ) |
implement the kill() method which is a virtual function in OShL
osol | is the string with the options in OSoL format |
Definition at line 176 of file OSSolverAgent.cpp.
References WSUtil::createSOAPMessage(), WSUtil::deSOAPify(), WSUtil::getOSxL(), postURI, WSUtil::sendSOAPMessage(), WSUtil::SOAPify(), solverAddress, and solverPortNumber.
Referenced by kill().
string OSSolverAgent::retrieve | ( | string | osol | ) |
implement the retrieve() method which is a virtual function in OShL
osol | is the string with the options in OSoL format |
Definition at line 151 of file OSSolverAgent.cpp.
References WSUtil::createSOAPMessage(), WSUtil::deSOAPify(), WSUtil::getOSxL(), postURI, WSUtil::sendSOAPMessage(), WSUtil::SOAPify(), solverAddress, and solverPortNumber.
Referenced by retrieve().
string OSSolverAgent::knock | ( | string | ospl, | |
string | osol | |||
) |
implement the knock() method which is a virtual function in OShL
ospl | is the string with the process information in OSpL format | |
osol | is the string with the options in OSoL format |
Definition at line 201 of file OSSolverAgent.cpp.
References WSUtil::createSOAPMessage(), WSUtil::deSOAPify(), WSUtil::getOSxL(), postURI, WSUtil::sendSOAPMessage(), WSUtil::SOAPify(), solverAddress, and solverPortNumber.
Referenced by knock().
string OSSolverAgent::fileUpload | ( | string | osilFileName, | |
string | osil | |||
) |
implement the fileUpload() method which is a virtual function in OShL
osilFileName | is the name of the file with the OSiL instance to be written on the server | |
osil | is a string with the OSiL problem instance |
Definition at line 86 of file OSSolverAgent.cpp.
References WSUtil::createFormDataUpload(), postURI, WSUtil::sendSOAPMessage(), solverAddress, and solverPortNumber.
Referenced by main().
string OSSolverAgent::solverAddress [private] |
solverAddress is the URI for the solver
Definition at line 133 of file OSSolverAgent.h.
Referenced by fileUpload(), getJobID(), kill(), knock(), OSSolverAgent(), retrieve(), send(), and solve().
unsigned short OSSolverAgent::solverPortNumber [private] |
solverPortNumber is the port number for the sovler
Definition at line 136 of file OSSolverAgent.h.
Referenced by fileUpload(), getJobID(), kill(), knock(), OSSolverAgent(), retrieve(), send(), and solve().
string OSSolverAgent::postURI [private] |
postURI is the path to the solver that follows the first / in the solverAddress
Definition at line 141 of file OSSolverAgent.h.
Referenced by fileUpload(), getJobID(), kill(), knock(), OSSolverAgent(), retrieve(), send(), and solve().