UNIVERS
15.3
UNIVERS base processing software API
|
#include <manager.hpp>
Public Member Functions | |
Manager () | |
virtual | ~Manager () |
virtual Manager * | clone () const =0 |
virtual size_t | getUnitsCount () const =0 |
virtual dcf::error_t | unitAlloc (int unit_id)=0 |
virtual dcf::error_t | unitFree (int unit_id)=0 |
virtual dcf::error_t | unitsFree ()=0 |
virtual dcf::error_t | isAllocatedUnit (int unit_id, bool &is_allocated) const =0 |
virtual dcf::error_t | unitPower (int unit_id, double &power) const =0 |
dcf::mantype_t | type () const |
Protected Attributes | |
dcf::mantype_t | m_type |
Distributed computing resource manager interface.
dcf::Manager::Manager | ( | ) |
Default constructor without any resource allocation.
|
virtual |
Destructs object.
|
pure virtual |
Clones this object and returns pointer of copy.
Implemented in dcf::ThreadManager.
|
pure virtual |
Returns number of computing units.
Implemented in dcf::ThreadManager.
|
pure virtual |
Check if unit with provided id is allocated.
Returns error if no units with provided id.
Implemented in dcf::ThreadManager.
|
inline |
Type of manager.
|
pure virtual |
Allocates unit with provided id. Returns error if id is incorrect.
Implemented in dcf::ThreadManager.
|
pure virtual |
Deallocates unit with provided id. Returns error if unit id is incorrect,
or if such unit is not allocated.
Implemented in dcf::ThreadManager.
|
pure virtual |
Unit with provided id relative power estimation. Power can be from 0 to 1.
Unit with power equal to 1 is the most powerfull unit. Returns error if incorrect unit id provided.
Implemented in dcf::ThreadManager.
|
pure virtual |
Deallocates all allocated units. Returns error if no allocated devices.
Implemented in dcf::ThreadManager.
|
protected |
Type of manager.