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

Class port Arbitrator. More...

#include <yarp/manager/arbitrator.h>

Public Member Functions

 Arbitrator ()=default
 
 Arbitrator (const char *szPort)
 
 ~Arbitrator ()=default
 
void setPort (const char *szPort)
 
const char * getPort ()
 
const char * getRule (const char *con)
 
std::map< std::string, std::string > & getRuleMap ()
 
int ruleCount ()
 
GraphicModelgetModel ()
 
void setModel (GraphicModel *mdl)
 
GraphicModelgetModelBase ()
 
void setModelBase (GraphicModel &mdl)
 
void setOwner (Node *owner)
 
Nodeowner ()
 
bool operator== (const Arbitrator &alt) const
 
std::map< std::string, double > & getAlphas (const char *con)
 
double getBias (const char *con)
 
void addRule (const char *con, const char *rule)
 Class Arbitrator. More...
 
void removeRule (const char *con)
 
bool trainWeights (const char *opnd)
 
bool trainWeights ()
 
bool validate ()
 

Detailed Description

Class port Arbitrator.

Definition at line 28 of file arbitrator.h.

Constructor & Destructor Documentation

◆ Arbitrator() [1/2]

yarp::manager::Arbitrator::Arbitrator ( )
default

◆ Arbitrator() [2/2]

yarp::manager::Arbitrator::Arbitrator ( const char *  szPort)
inline

Definition at line 31 of file arbitrator.h.

◆ ~Arbitrator()

yarp::manager::Arbitrator::~Arbitrator ( )
default

Member Function Documentation

◆ addRule()

void Arbitrator::addRule ( const char *  con,
const char *  rule 
)

Class Arbitrator.

Definition at line 33 of file arbitrator.cpp.

◆ getAlphas()

std::map<std::string, double>& yarp::manager::Arbitrator::getAlphas ( const char *  con)
inline

Definition at line 65 of file arbitrator.h.

◆ getBias()

double yarp::manager::Arbitrator::getBias ( const char *  con)
inline

Definition at line 69 of file arbitrator.h.

◆ getModel()

GraphicModel* yarp::manager::Arbitrator::getModel ( )
inline

Definition at line 49 of file arbitrator.h.

◆ getModelBase()

GraphicModel& yarp::manager::Arbitrator::getModelBase ( )
inline

Definition at line 55 of file arbitrator.h.

◆ getPort()

const char* yarp::manager::Arbitrator::getPort ( )
inline

Definition at line 36 of file arbitrator.h.

◆ getRule()

const char* yarp::manager::Arbitrator::getRule ( const char *  con)
inline

Definition at line 38 of file arbitrator.h.

◆ getRuleMap()

std::map<std::string, std::string>& yarp::manager::Arbitrator::getRuleMap ( )
inline

Definition at line 46 of file arbitrator.h.

◆ operator==()

bool yarp::manager::Arbitrator::operator== ( const Arbitrator alt) const
inline

Definition at line 61 of file arbitrator.h.

◆ owner()

Node* yarp::manager::Arbitrator::owner ( )
inline

Definition at line 59 of file arbitrator.h.

◆ removeRule()

void Arbitrator::removeRule ( const char *  con)

Definition at line 44 of file arbitrator.cpp.

◆ ruleCount()

int yarp::manager::Arbitrator::ruleCount ( )
inline

Definition at line 47 of file arbitrator.h.

◆ setModel()

void yarp::manager::Arbitrator::setModel ( GraphicModel mdl)
inline

Definition at line 50 of file arbitrator.h.

◆ setModelBase()

void yarp::manager::Arbitrator::setModelBase ( GraphicModel mdl)
inline

Definition at line 56 of file arbitrator.h.

◆ setOwner()

void yarp::manager::Arbitrator::setOwner ( Node owner)
inline

Definition at line 58 of file arbitrator.h.

◆ setPort()

void yarp::manager::Arbitrator::setPort ( const char *  szPort)
inline

Definition at line 34 of file arbitrator.h.

◆ trainWeights() [1/2]

bool Arbitrator::trainWeights ( )

Definition at line 118 of file arbitrator.cpp.

◆ trainWeights() [2/2]

bool Arbitrator::trainWeights ( const char *  opnd)

Definition at line 65 of file arbitrator.cpp.

◆ validate()

bool Arbitrator::validate ( )

Definition at line 130 of file arbitrator.cpp.


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