|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
9 #ifndef YARP_MANAGER_PRIMRESOURCE
10 #define YARP_MANAGER_PRIMRESOURCE
30 Memory(
const char* szName);
84 void setIP4(
const char* ip) {
if(ip) strIP4 = ip; }
85 void setIP6(
const char* ip) {
if(ip) strIP6 = ip; }
86 void setMAC(
const char* mac) {
if(mac) strMAC = mac; }
87 const char*
getIP4() {
return strIP4.c_str(); }
88 const char*
getIP6() {
return strIP6.c_str(); }
89 const char*
getMAC() {
return strMAC.c_str(); }
120 void setModel(
const char* model) {
if(model) strModel = model; }
126 const char*
getModel() {
return strModel.c_str(); }
135 std::string strArchitecure;
136 std::string strModel;
200 bool satisfyComputer(
Computer* comp);
213 #endif // __YARP_MANAGER_PRIMRESOURCE__
void setModel(const char *model)
double loadAverageInstant
const LoadAvg & getCPULoad()
void setProcessor(Processor &proc)
std::vector< Process >::iterator ProcessIterator
void setArchitecture(const char *arch)
void setMemory(Memory &mem)
bool satisfy(GenericResource *resource) override
GenericResource & getPeripheralAt(int index) const
bool satisfy(GenericResource *resource) override
void setIP6(const char *ip)
void setTotalSpace(Capacity c)
void setFrequency(double f)
struct yarp::manager::_Process Process
Class Computer.
void setFreeSpace(Capacity c)
Processor()
Class Processor.
std::vector< GenericResource * > ResourcePContainer
Computer()
Class Computer.
bool satisfy(GenericResource *resource) override
Computer & operator=(const Computer &rhs)
int peripheralCount() const
Processor & getProcessor()
void setMAC(const char *mac)
std::vector< Process > ProcessContainer
void setCPULoad(const LoadAvg &avg)
void setFreeSpace(Capacity c)
bool addPeripheral(GenericResource &res)
bool satisfy(GenericResource *resource) override
void setPlatform(Platform &os)
std::vector< Computer >::iterator ComputerIterator
ProcessContainer & getProcesses()
bool satisfy(GenericResource *resource) override
The main, catch-all namespace for YARP.
void setNetwork(Network &net)
const char * getArchitecture()
std::vector< Computer > ComputerContainer
void setStorage(Storage &stg)
struct yarp::manager::_LoadAvg LoadAvg
void setSiblings(size_t n)
void setIP4(const char *ip)
void setTotalSpace(Capacity c)