YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
yarp::manager::Computer Class Reference

#include <yarp/manager/primresource.h>

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

Public Member Functions

 Computer ()
 Class Computer.
 
 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.
 
 ~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
 
bool removeSuc (Node *node)
 
void removeAllSuc ()
 
bool hasSuc (Node *node)
 
GraphicModelgetModel ()
 
void setModel (GraphicModel *mdl)
 

Detailed Description

Definition at line 171 of file primresource.h.

Constructor & Destructor Documentation

◆ Computer() [1/3]

Computer::Computer ( )

Class Computer.

Definition at line 199 of file primresource.cpp.

◆ Computer() [2/3]

Computer::Computer ( const char *  szName)

Definition at line 204 of file primresource.cpp.

◆ Computer() [3/3]

Computer::Computer ( const Computer rhs)

Definition at line 211 of file primresource.cpp.

◆ ~Computer()

Computer::~Computer ( )
virtual

Definition at line 340 of file primresource.cpp.

Member Function Documentation

◆ addPeripheral()

bool Computer::addPeripheral ( GenericResource res)

Definition at line 225 of file primresource.cpp.

◆ clear()

void Computer::clear ( )

Definition at line 328 of file primresource.cpp.

◆ clone()

Node * Computer::clone ( )
overridevirtual

Implements yarp::manager::Node.

Definition at line 307 of file primresource.cpp.

◆ getMemory()

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

Definition at line 187 of file primresource.h.

◆ getNetwork()

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

Definition at line 190 of file primresource.h.

◆ getPeripheralAt()

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

Definition at line 194 of file primresource.h.

◆ getPlatform()

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

Definition at line 191 of file primresource.h.

◆ getProcesses()

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

Definition at line 199 of file primresource.h.

◆ getProcessor()

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

Definition at line 189 of file primresource.h.

◆ getStorage()

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

Definition at line 188 of file primresource.h.

◆ operator=()

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

Definition at line 217 of file primresource.cpp.

◆ peripheralCount()

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

Definition at line 193 of file primresource.h.

◆ satisfy()

bool Computer::satisfy ( GenericResource resource)
overridevirtual

Implements yarp::manager::GenericResource.

Definition at line 233 of file primresource.cpp.

◆ setMemory()

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

Definition at line 181 of file primresource.h.

◆ setNetwork()

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

Definition at line 184 of file primresource.h.

◆ setPlatform()

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

Definition at line 185 of file primresource.h.

◆ setProcessor()

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

Definition at line 183 of file primresource.h.

◆ setStorage()

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

Definition at line 182 of file primresource.h.


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