/* * MPQCFragmentController.hpp * * Created on: Aug 27, 2012 * Author: heber */ #ifndef MPQCFRAGMENTCONTROLLER_HPP_ #define MPQCFRAGMENTCONTROLLER_HPP_ // include config.h #ifdef HAVE_CONFIG_H #include #endif #include "Fragmentation/Automation/SpecificFragmentController.hpp" #include #include #include #include #include "JobMarket/JobId.hpp" #include "Jobs/MPQCData.hpp" /** This class uses SpecificFragmentController with functions to add specificly * VMGJobs. */ class MPQCFragmentController : public SpecificFragmentController { public: MPQCFragmentController(boost::asio::io_service &io_service) : SpecificFragmentController(io_service) {} virtual ~MPQCFragmentController() {} /** Command Controller to fill its hold of jobs from FragmentJobQueue. * * \return true - jobs obtained, false - queue empty */ bool addJobsFromQueue(); /** Get results map of calculated jobs. * * \param fragmentData contains map of results on output */ void getResults(std::map &fragmentData) { SpecificFragmentController::getResults(fragmentData); } /** Runs the service. * * Here, we finalize each job's id and push them to the server. */ void run(); }; #endif /* MPQCFRAGMENTCONTROLLER_HPP_ */