|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
9 #ifndef YARP_MANAGER_KBASE
10 #define YARP_MANAGER_KBASE
26 #define NODELINK_SUPERFICIAL 1
27 #define NODELINK_DEEP 2
43 mainApplication(nullptr)
55 char **szAppName_=
nullptr,
56 bool modifyName=
false);
64 bool bAutoDependancy=
false,
bool bSilent=
false);
66 bool bAutoDependancy=
false,
bool bSilent=
false);
146 std::map<std::string, int> appList;
149 void updateNodesLink(
Graph& graph,
int level);
150 void makeResourceLinks(
Graph& graph);
151 void updateResourceWeight(
Graph& graph,
157 const char* createDataLabel(
const char* modlabel,
const char* port,
158 const char* postfix=
nullptr);
168 bool removeModuleFromGraph(
Graph& graph,
Module* mod);
177 bool bAutoDependancy,
bool bSilent);
179 bool constrainSatisfied(
Node* node,
180 bool bAutoDependancy,
bool bSilent);
182 bool isExternalResource(
Graph& graph,
const char* szName);
183 float calculateLoad(
Computer* comp);
199 std::string strFirst((*f).getName());
200 std::string strSecond((*s).getName());
201 transform(strFirst.begin(), strFirst.end(), strFirst.begin(),
202 (
int(*)(
int))toupper);
203 transform(strSecond.begin(), strSecond.end(), strSecond.begin(),
204 (
int(*)(
int))toupper);
205 return (strFirst.compare(strSecond) < 0);
215 std::string strFirst((*f).getName());
216 std::string strSecond((*s).getName());
217 transform(strFirst.begin(), strFirst.end(), strFirst.begin(),
218 (
int(*)(
int))toupper);
219 transform(strSecond.begin(), strSecond.end(), strSecond.begin(),
220 (
int(*)(
int))toupper);
221 return (strFirst.compare(strSecond) < 0);
231 std::string strFirst(f->
getName());
232 std::string strSecond(s->
getName());
233 transform(strFirst.begin(), strFirst.end(), strFirst.begin(),
234 (
int(*)(
int))toupper);
235 transform(strSecond.begin(), strSecond.end(), strSecond.begin(),
236 (
int(*)(
int))toupper);
237 return (strFirst.compare(strSecond) < 0);
245 #endif // __YARP_MANAGER_KBASE__
bool setApplicationPrefix(Application *app, const char *szPrefix, bool updateBasePref=true)
std::vector< Application * > ApplicaitonPContainer
bool operator()(Application *f, Application *s)
Application * getApplication(const char *szName)
const ModulePContainer & getSelModules()
bool setModulePrefix(Module *module, const char *szPrefix, bool updateBasePrefix=true)
const ArbContainer & getArbitrators(Application *parent=nullptr)
Node * getNode(const char *szLabel)
std::vector< Connection > CnnContainer
const CnnContainer & getSelConnection()
bool addApplication(Application *application, char **szAppName_=nullptr, bool modifyName=false)
const ModulePContainer & getModules(Application *parent=nullptr)
std::vector< Node * > NodePVector
const ApplicaitonPContainer & getApplications(Application *parent=nullptr)
std::vector< Arbitrator > ArbContainer
bool addResource(GenericResource *resource)
const CnnContainer & getConnections(Application *parent=nullptr)
std::vector< GenericResource * > ResourcePContainer
Application * addIApplicationToApplication(Application *application, ApplicationInterface &app, bool isNew=false)
bool removeApplication(Application *application)
const OutputContainer & getOutputCandidates(InputData *input)
Abstract Class ResourceLoader.
bool operator()(GenericResource *f, GenericResource *s)
bool removeArbitratorFromApplication(Application *application, Arbitrator &arb)
bool operator()(Module *f, Module *s)
bool saveApplication(AppSaver *appSaver, Application *application)
std::vector< InputData > InputContainer
Node * getNode(std::string appName)
std::vector< OutputData > OutputContainer
Class ApplicationInterface.
Connection & addConnectionToApplication(Application *application, Connection &cnn)
const ResourcePContainer & getSelResources()
bool removeConnectionFromApplication(Application *application, Connection &cnn)
bool removeResource(GenericResource *resource)
const ResourcePContainer & getResources(Application *parent=nullptr)
bool exportAppGraph(const char *szFileName)
bool removeIModuleFromApplication(Application *application, const char *szTag)
bool addModule(Module *module)
bool updateConnectionOfApplication(Application *application, Connection &prev, Connection &con)
Module * addIModuleToApplication(Application *application, ModuleInterface &mod, bool isNew=false)
std::vector< Node * >::iterator NodePVIterator
const InputContainer & getInputCandidates(OutputData *output)
bool exportDotGraph(Graph &graph, const char *szFileName)
bool createFrom(ModuleLoader *_mloader, AppLoader *_apploader, ResourceLoader *_resloader)
Abstract Class ModuleLoader.
Application * getApplication()
bool removeIApplicationFromApplication(Application *application, const char *szTag)
Module * getModule(const char *szName)
bool removeModule(Module *module)
bool exportKbGraph(const char *szFileName)
The main, catch-all namespace for YARP.
bool reasolveDependency(const char *szName, bool bAutoDependancy=false, bool bSilent=false)
const ApplicaitonPContainer & getSelApplications()
std::vector< Module * > ModulePContainer
Arbitrator & addArbitratorToApplication(Application *application, Arbitrator &arb)
const std::string getUniqueAppID(Application *parent, const char *szAppName)
Abstract Class AppLoader.
GenericResource * getResource(const char *szName)