OSSolverAgent Class Reference

Used by a client to invoke a remote solver. More...

#include <OSSolverAgent.h>

Inheritance diagram for OSSolverAgent:
Inheritance graph
[legend]
Collaboration diagram for OSSolverAgent:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

Used by a client to invoke a remote solver.

Remarks:

This is an implementation of the virtual class OShL. We need to implement the following virtual methods.

The following key methods are invoked:

  1. solve
  2. kill
  3. send
  4. retrieve
  5. knock
  6. getJobID

Definition at line 42 of file OSSolverAgent.h.


Constructor & Destructor Documentation

OSSolverAgent::OSSolverAgent ( string  solverURI  ) 

Default constructor.

Parameters:
solverURI is the location of remote solver or scheduler
OSSolverAgent::~OSSolverAgent (  ) 

Class destructor.


Member Function Documentation

string OSSolverAgent::solve ( string  osil,
string  osol 
)

implement the solve() method which is a virtual function in OShL, this is synchronous

Parameters:
osil a string that holds the problem instance
osol is a string of options for the solver
Returns:
osrl which is a string with the result.
string OSSolverAgent::getJobID ( string  osol  ) 

implement the getJobID() method which is a virtual function in OShL

Parameters:
osol is the string with the options in OSoL format
Returns:
a string which is the jobID
bool OSSolverAgent::send ( string  osil,
string  osol 
)

implement the send() method which is a virtual function in OShL

Parameters:
osil is the string with the instance in OSiL format
osol is the string with the options in OSoL format
Returns:
a bool which is true if the job is successfuly submitted
string OSSolverAgent::kill ( string  osol  ) 

implement the kill() method which is a virtual function in OShL

Parameters:
osol is the string with the options in OSoL format
Returns:
a string which is in OSpL format
string OSSolverAgent::retrieve ( string  osol  ) 

implement the retrieve() method which is a virtual function in OShL

Parameters:
osol is the string with the options in OSoL format
Returns:
a string which is in the result of the optimization is OSrL fomrat
string OSSolverAgent::knock ( string  ospl,
string  osol 
)

implement the knock() method which is a virtual function in OShL

Parameters:
ospl is the string with the process information in OSpL format
osol is the string with the options in OSoL format
Returns:
a string which is the knock result in OSpL format.
string OSSolverAgent::fileUpload ( string  osilFileName,
string  osil 
)

implement the fileUpload() method which is a virtual function in OShL

Parameters:
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

Member Data Documentation

string OSSolverAgent::solverAddress [private]

solverAddress is the URI for the solver

Definition at line 133 of file OSSolverAgent.h.

unsigned short OSSolverAgent::solverPortNumber [private]

solverPortNumber is the port number for the sovler

Definition at line 136 of file OSSolverAgent.h.

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.


The documentation for this class was generated from the following file:

Generated on 15 Mar 2015 for Coin-All by  doxygen 1.6.1