9 #ifndef YARP_MANAGER_ARBITRATOR
10 #define YARP_MANAGER_ARBITRATOR
34 void setPort(
const char* szPort) {
if(szPort) { strPort = szPort; } }
36 const char*
getPort() {
return strPort.c_str(); }
40 if(con && (rules.find(con) != rules.end())) {
41 return rules[con].c_str();
46 std::map<std::string, std::string>&
getRuleMap() {
return rules; }
62 return (strPort == alt.strPort);
65 std::map<std::string, double>&
getAlphas(
const char* con) {
73 void addRule(
const char* con,
const char* rule);
83 std::map<std::string, std::string> rules;
85 GraphicModel modelBase;
86 Node* appOwner {
nullptr};
88 std::map<std::string, std::map<std::string, double> > alphas;
89 std::map<std::string, double> biases;
101 #endif // __YARP_MANAGER_ARBITRATOR__