Public Member Functions | List of all members
OShL Class Referenceabstract

An interface that specified virtual methods to be implemented by agents. More...

#include "OShL.h"

Inheritance diagram for OShL:
Inheritance graph
[legend]

Public Member Functions

 OShL ()
 Default constructor. More...
 
virtual ~OShL ()=0
 Class destructor. More...
 
virtual std::string solve (std::string osil, std::string osol)=0
 submit an instance with its options for a synchronous solution More...
 
virtual std::string getJobID (std::string osol)=0
 get a jobID for use in the send method More...
 
virtual bool send (std::string osil, std::string osol)=0
 submit an instance with its options for an asynchronous solution More...
 
virtual std::string kill (std::string osol)=0
 kill an instance that is running More...
 
virtual std::string retrieve (std::string osol)=0
 retrieve an instance result that ran in asynchronous mode More...
 
virtual std::string knock (std::string ospl, std::string osol)=0
 knock to get information on the current status of a job More...
 

Detailed Description

An interface that specified virtual methods to be implemented by agents.

Remarks

This is a virtual class that lists all of the methods a client (or scheduler/solver) should implement

Definition at line 32 of file OShL.h.

Constructor & Destructor Documentation

OShL::OShL ( )

Default constructor.

Definition at line 19 of file OShL.cpp.

OShL::~OShL ( )
pure virtual

Class destructor.

Definition at line 22 of file OShL.cpp.

Member Function Documentation

virtual std::string OShL::solve ( std::string  osil,
std::string  osol 
)
pure virtual

submit an instance with its options for a synchronous solution

Parameters
osilis the string with the instance in OSiL format
osolis the string with the options in OSoL format
Returns
a string which is the result in OSrL format.

Implemented in OSSolverAgent.

virtual std::string OShL::getJobID ( std::string  osol)
pure virtual

get a jobID for use in the send method

Parameters
osolis the string with the options in OSoL format
Returns
a string which is the jobID

Implemented in OSSolverAgent.

virtual bool OShL::send ( std::string  osil,
std::string  osol 
)
pure virtual

submit an instance with its options for an asynchronous solution

Parameters
osilis the string with the instance in OSiL format
osolis the string with the options in OSoL format
Returns
a bool which is true if the job is successfully submitted

Implemented in OSSolverAgent.

virtual std::string OShL::kill ( std::string  osol)
pure virtual

kill an instance that is running

Parameters
osolis the string with the options in OSoL format
Returns
a string which is in OSpL format

Implemented in OSSolverAgent.

virtual std::string OShL::retrieve ( std::string  osol)
pure virtual

retrieve an instance result that ran in asynchronous mode

Parameters
osolis the string with the options in OSoL format
Returns
a string which is in the result of the optimization is OSrL fomrat

Implemented in OSSolverAgent.

virtual std::string OShL::knock ( std::string  ospl,
std::string  osol 
)
pure virtual

knock to get information on the current status of a job

Parameters
osplis the string with the process information in OSpL format
osolis the string with the options in OSoL format
Returns
a string which is the knock result in OSpL format.

Implemented in OSSolverAgent.


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