YARP
Yet Another Robot Platform
yarp::manager::Processor Class Reference

#include <yarp/manager/primresource.h>

+ Inheritance diagram for yarp::manager::Processor:

Public Member Functions

 Processor ()
 Class Processor. More...
 
 Processor (const char *szName)
 
virtual ~Processor ()
 
Nodeclone () override
 
bool satisfy (GenericResource *resource) override
 
void setArchitecture (const char *arch)
 
void setModel (const char *model)
 
void setCores (size_t n)
 
void setSiblings (size_t n)
 
void setFrequency (double f)
 
void setCPULoad (const LoadAvg &avg)
 
const char * getArchitecture ()
 
const char * getModel ()
 
size_t getCores ()
 
size_t getSiblings ()
 
double getFrequency ()
 
const LoadAvggetCPULoad ()
 
- Public Member Functions inherited from yarp::manager::GenericResource
 GenericResource (const char *szTypeName)
 Class GenericResource. More...
 
 ~GenericResource () override
 
void setAvailability (bool flag)
 
bool getAvailability ()
 
void setDisable (bool flag)
 
bool getDisable ()
 
void setName (const char *szName)
 
const char * getName ()
 
void setDescription (const char *szDesc)
 
const char * getDescription ()
 
const char * getTypeName ()
 
void setOwner (Node *owner)
 
Nodeowner ()
 
void setXmlFile (const char *szFilename)
 
const char * getXmlFile ()
 
bool operator== (const GenericResource &res) const
 
- Public Member Functions inherited from yarp::manager::Node
 Node (NodeType _type)
 
 Node (NodeType _type, const char *szLabel)
 
virtual ~Node ()
 
void setSatisfied (bool sat)
 
bool isSatisfied ()
 
void setVisited (bool vis)
 
bool isVisited ()
 
bool isLeaf ()
 
NodeType getType ()
 
void setLabel (const char *szLabel)
 
const char * getLabel ()
 
int sucCount ()
 
LinkgetLinkAt (int index)
 
bool addSuc (Node *node, float weight, bool _virtual=false)
 class Node More...
 
bool removeSuc (Node *node)
 
void removeAllSuc ()
 
bool hasSuc (Node *node)
 
GraphicModelgetModel ()
 
void setModel (GraphicModel *mdl)
 

Detailed Description

Definition at line 111 of file primresource.h.

Constructor & Destructor Documentation

◆ Processor() [1/2]

Processor::Processor ( )

Class Processor.

Definition at line 138 of file primresource.cpp.

◆ Processor() [2/2]

Processor::Processor ( const char *  szName)

Definition at line 150 of file primresource.cpp.

◆ ~Processor()

Processor::~Processor ( )
virtualdefault

Member Function Documentation

◆ clone()

Node * Processor::clone ( )
overridevirtual

Implements yarp::manager::Node.

Definition at line 180 of file primresource.cpp.

◆ getArchitecture()

const char* yarp::manager::Processor::getArchitecture ( )
inline

Definition at line 125 of file primresource.h.

◆ getCores()

size_t yarp::manager::Processor::getCores ( )
inline

Definition at line 127 of file primresource.h.

◆ getCPULoad()

const LoadAvg& yarp::manager::Processor::getCPULoad ( )
inline

Definition at line 130 of file primresource.h.

◆ getFrequency()

double yarp::manager::Processor::getFrequency ( )
inline

Definition at line 129 of file primresource.h.

◆ getModel()

const char* yarp::manager::Processor::getModel ( )
inline

Definition at line 126 of file primresource.h.

◆ getSiblings()

size_t yarp::manager::Processor::getSiblings ( )
inline

Definition at line 128 of file primresource.h.

◆ satisfy()

bool Processor::satisfy ( GenericResource resource)
overridevirtual

Implements yarp::manager::GenericResource.

Definition at line 162 of file primresource.cpp.

◆ setArchitecture()

void yarp::manager::Processor::setArchitecture ( const char *  arch)
inline

Definition at line 119 of file primresource.h.

◆ setCores()

void yarp::manager::Processor::setCores ( size_t  n)
inline

Definition at line 121 of file primresource.h.

◆ setCPULoad()

void yarp::manager::Processor::setCPULoad ( const LoadAvg avg)
inline

Definition at line 124 of file primresource.h.

◆ setFrequency()

void yarp::manager::Processor::setFrequency ( double  f)
inline

Definition at line 123 of file primresource.h.

◆ setModel()

void yarp::manager::Processor::setModel ( const char *  model)
inline

Definition at line 120 of file primresource.h.

◆ setSiblings()

void yarp::manager::Processor::setSiblings ( size_t  n)
inline

Definition at line 122 of file primresource.h.


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