OSSolverAgent.h
Go to the documentation of this file.
1 /* $Id: OSSolverAgent.h 5284 2017-12-08 13:52:50Z stefan $ */
16 #ifndef OSSOLVERAGENT_H
17 #define OSSOLVERAGENT_H
18 
19 #include "OShL.h"
20 
41 class OSSolverAgent : public OShL
42 {
43 public:
44 
49  OSSolverAgent(std::string solverURI) ;
50 
55 
65  std::string solve(std::string osil, std::string osol);
66 
75  std::string getJobID(std::string osol);
76 
86  bool send(std::string osil, std::string osol);
87 
96  std::string kill(std::string osol);
97 
106  std::string retrieve(std::string osol);
107 
117  std::string knock(std::string ospl, std::string osol);
118 
128  std::string fileUpload(std::string osilFileName, std::string osil);
129 
130 private:
131 
133  std::string solverAddress;
134 
136  unsigned short solverPortNumber;
137 
141  std::string postURI;
142 
143 }; //class OSSolverAgent
144 
145 #endif
Used by a client to invoke a remote solver.
Definition: OSSolverAgent.h:41
std::string retrieve(std::string osol)
implement the retrieve() 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
An interface that specified virtual methods to be implemented by agents.
Definition: OShL.h:32
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 solverAddress
solverAddress is the URI for the solver
OSSolverAgent(std::string solverURI)
Default constructor.
unsigned short solverPortNumber
solverPortNumber is the port number for the solver
std::string fileUpload(std::string osilFileName, std::string osil)
implement the fileUpload() 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 postURI
postURI is the path to the solver that follows the first '/' in the solverAddress ...
~OSSolverAgent()
Class destructor.
std::string kill(std::string osol)
implement the kill() method which is a virtual function in OShL
std::string getJobID(std::string osol)
implement the getJobID() method which is a virtual function in OShL