#include <OSSolverAgent.h>
Inheritance diagram for OSSolverAgent:
Public Member Functions | |
OSSolverAgent (std::string solverURI) | |
Default constructor. | |
~OSSolverAgent () | |
Class destructor. | |
std::string | solve (std::string osil, std::string osol) |
implement the solve() method which is a virtual function in OShL, this is synchronous | |
std::string | getJobID (std::string osol) |
implement the getJobID() method which is a virtual function in OShL | |
bool | send (std::string osil, std::string osol) |
implement the send() method which is a virtual function in OShL | |
std::string | kill (std::string osol) |
implement the kill() method which is a virtual function in OShL | |
std::string | retrieve (std::string osol) |
implement the retrieve() method which is a virtual function in OShL | |
std::string | knock (std::string ospl, std::string osol) |
implement the knock() method which is a virtual function in OShL | |
std::string | fileUpload (std::string osilFileName, std::string osil) |
implement the fileUpload() method which is a virtual function in OShL | |
Private Attributes | |
std::string | solverAddress |
solverAddress is the URI for the solver | |
unsigned short | solverPortNumber |
solverPortNumber is the port number for the sovler | |
std::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 41 of file OSSolverAgent.h.
OSSolverAgent::OSSolverAgent | ( | std::string | solverURI | ) |
Default constructor.
solverURI | is the location of remote solver or scheduler |
OSSolverAgent::~OSSolverAgent | ( | ) |
std::string OSSolverAgent::solve | ( | std::string | osil, | |
std::string | osol | |||
) | [virtual] |
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 |
Implements OShL.
Referenced by main(), solve(), and OSMatlab::solve().
std::string OSSolverAgent::getJobID | ( | std::string | osol | ) | [virtual] |
implement the getJobID() method which is a virtual function in OShL
osol | is the string with the options in OSoL format |
Implements OShL.
Referenced by getJobID(), main(), and send().
bool OSSolverAgent::send | ( | std::string | osil, | |
std::string | osol | |||
) | [virtual] |
std::string OSSolverAgent::kill | ( | std::string | osol | ) | [virtual] |
std::string OSSolverAgent::retrieve | ( | std::string | osol | ) | [virtual] |
implement the retrieve() method which is a virtual function in OShL
osol | is the string with the options in OSoL format |
Implements OShL.
Referenced by main(), and retrieve().
std::string OSSolverAgent::knock | ( | std::string | ospl, | |
std::string | osol | |||
) | [virtual] |
std::string OSSolverAgent::fileUpload | ( | std::string | osilFileName, | |
std::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 |
Referenced by main().
std::string OSSolverAgent::solverAddress [private] |
unsigned short OSSolverAgent::solverPortNumber [private] |
std::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.