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

#include <yarp/manager/primresource.h>

+ Inheritance diagram for yarp::manager::Computer:

Public Member Functions

 Computer ()
 Class Computer. More...
 
 Computer (const char *szName)
 
 Computer (const Computer &rhs)
 
virtual ~Computer ()
 
Computeroperator= (const Computer &rhs)
 
Nodeclone () override
 
bool satisfy (GenericResource *resource) override
 
void setMemory (Memory &mem)
 
void setStorage (Storage &stg)
 
void setProcessor (Processor &proc)
 
void setNetwork (Network &net)
 
void setPlatform (Platform &os)
 
MemorygetMemory ()
 
StoragegetStorage ()
 
ProcessorgetProcessor ()
 
NetworkgetNetwork ()
 
PlatformgetPlatform ()
 
int peripheralCount () const
 
GenericResourcegetPeripheralAt (int index) const
 
bool addPeripheral (GenericResource &res)
 
void clear ()
 
ProcessContainergetProcesses ()
 
- 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 155 of file primresource.h.

Constructor & Destructor Documentation

◆ Computer() [1/3]

Computer::Computer ( )

Class Computer.

Definition at line 195 of file primresource.cpp.

◆ Computer() [2/3]

Computer::Computer ( const char *  szName)

Definition at line 200 of file primresource.cpp.

◆ Computer() [3/3]

Computer::Computer ( const Computer rhs)

Definition at line 207 of file primresource.cpp.

◆ ~Computer()

Computer::~Computer ( )
virtual

Definition at line 323 of file primresource.cpp.

Member Function Documentation

◆ addPeripheral()

bool Computer::addPeripheral ( GenericResource res)

Definition at line 221 of file primresource.cpp.

◆ clear()

void Computer::clear ( )

Definition at line 311 of file primresource.cpp.

◆ clone()

Node * Computer::clone ( )
overridevirtual

Implements yarp::manager::Node.

Definition at line 291 of file primresource.cpp.

◆ getMemory()

Memory& yarp::manager::Computer::getMemory ( )
inline

Definition at line 171 of file primresource.h.

◆ getNetwork()

Network& yarp::manager::Computer::getNetwork ( )
inline

Definition at line 174 of file primresource.h.

◆ getPeripheralAt()

GenericResource& yarp::manager::Computer::getPeripheralAt ( int  index) const
inline

Definition at line 178 of file primresource.h.

◆ getPlatform()

Platform& yarp::manager::Computer::getPlatform ( )
inline

Definition at line 175 of file primresource.h.

◆ getProcesses()

ProcessContainer& yarp::manager::Computer::getProcesses ( )
inline

Definition at line 183 of file primresource.h.

◆ getProcessor()

Processor& yarp::manager::Computer::getProcessor ( )
inline

Definition at line 173 of file primresource.h.

◆ getStorage()

Storage& yarp::manager::Computer::getStorage ( )
inline

Definition at line 172 of file primresource.h.

◆ operator=()

Computer & Computer::operator= ( const Computer rhs)

Definition at line 213 of file primresource.cpp.

◆ peripheralCount()

int yarp::manager::Computer::peripheralCount ( ) const
inline

Definition at line 177 of file primresource.h.

◆ satisfy()

bool Computer::satisfy ( GenericResource resource)
overridevirtual

Implements yarp::manager::GenericResource.

Definition at line 229 of file primresource.cpp.

◆ setMemory()

void yarp::manager::Computer::setMemory ( Memory mem)
inline

Definition at line 165 of file primresource.h.

◆ setNetwork()

void yarp::manager::Computer::setNetwork ( Network net)
inline

Definition at line 168 of file primresource.h.

◆ setPlatform()

void yarp::manager::Computer::setPlatform ( Platform os)
inline

Definition at line 169 of file primresource.h.

◆ setProcessor()

void yarp::manager::Computer::setProcessor ( Processor proc)
inline

Definition at line 167 of file primresource.h.

◆ setStorage()

void yarp::manager::Computer::setStorage ( Storage stg)
inline

Definition at line 166 of file primresource.h.


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