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

Class Executable. More...

#include <yarp/manager/executable.h>

+ Inheritance diagram for yarp::manager::Executable:

Public Member Functions

 Executable (Broker *_broker, MEvent *_event, Module *module, bool bWatchDog=true)
 
 ~Executable () override
 
bool start ()
 
void stop ()
 
void kill ()
 
void setID (int id)
 
void setCommand (const char *val)
 
void setParam (const char *val)
 
void setHost (const char *val)
 
void setStdio (const char *val)
 
void setWorkDir (const char *val)
 
void setEnv (const char *val)
 
void addConnection (Connection &cnn)
 
CnnContainergetConnections ()
 
void addResource (ResYarpPort &res)
 
ResourceContainergetResources ()
 
RSTATE state ()
 
BrokerType getBrokerType ()
 
bool shouldChangeBroker ()
 
BrokergetBroker ()
 
void setAndInitializeBroker (Broker *_broker)
 
void removeBroker ()
 
MEventgetEvent ()
 
const char * getCommand ()
 
const char * getParam ()
 
const char * getHost ()
 
const char * getStdio ()
 
const char * getWorkDir ()
 
const char * getEnv ()
 
int getID ()
 
ModulegetModule ()
 
void setPostExecWait (double t)
 
double getPostExecWait ()
 
void setPostStopWait (double t)
 
double getPostStopWait ()
 
void setOriginalPostExecWait (double t)
 
void restoreOriginalPostExecWait ()
 
void setOriginalPostStopWait (double t)
 
void restoreOriginalPostStopWait ()
 
void enableAutoConnect ()
 
void disableAutoConnect ()
 
bool autoConnect ()
 
bool startWatchDog ()
 
void stopWatchDog ()
 
void onBrokerStdout (const char *msg) override
 
- Public Member Functions inherited from yarp::manager::BrokerEventSink
virtual ~BrokerEventSink ()
 
virtual void onBrokerModuleFailed ()
 

Detailed Description

Class Executable.

Definition at line 74 of file executable.h.

Constructor & Destructor Documentation

◆ Executable()

Executable::Executable ( Broker _broker,
MEvent _event,
Module module,
bool  bWatchDog = true 
)

Definition at line 14 of file executable.cpp.

◆ ~Executable()

Executable::~Executable ( )
override

Definition at line 40 of file executable.cpp.

Member Function Documentation

◆ addConnection()

void yarp::manager::Executable::addConnection ( Connection cnn)
inline

Definition at line 92 of file executable.h.

◆ addResource()

void yarp::manager::Executable::addResource ( ResYarpPort res)
inline

Definition at line 94 of file executable.h.

◆ autoConnect()

bool yarp::manager::Executable::autoConnect ( )
inline

Definition at line 126 of file executable.h.

◆ disableAutoConnect()

void yarp::manager::Executable::disableAutoConnect ( )
inline

Definition at line 125 of file executable.h.

◆ enableAutoConnect()

void yarp::manager::Executable::enableAutoConnect ( )
inline

Definition at line 124 of file executable.h.

◆ getBroker()

Broker* yarp::manager::Executable::getBroker ( )
inline

Definition at line 100 of file executable.h.

◆ getBrokerType()

BrokerType Executable::getBrokerType ( )

Definition at line 168 of file executable.cpp.

◆ getCommand()

const char* yarp::manager::Executable::getCommand ( )
inline

Definition at line 105 of file executable.h.

◆ getConnections()

CnnContainer& yarp::manager::Executable::getConnections ( )
inline

Definition at line 93 of file executable.h.

◆ getEnv()

const char* yarp::manager::Executable::getEnv ( )
inline

Definition at line 110 of file executable.h.

◆ getEvent()

MEvent* yarp::manager::Executable::getEvent ( )
inline

Definition at line 104 of file executable.h.

◆ getHost()

const char* yarp::manager::Executable::getHost ( )
inline

Definition at line 107 of file executable.h.

◆ getID()

int yarp::manager::Executable::getID ( )
inline

Definition at line 111 of file executable.h.

◆ getModule()

Module* yarp::manager::Executable::getModule ( )
inline

Definition at line 112 of file executable.h.

◆ getParam()

const char* yarp::manager::Executable::getParam ( )
inline

Definition at line 106 of file executable.h.

◆ getPostExecWait()

double yarp::manager::Executable::getPostExecWait ( )
inline

Definition at line 115 of file executable.h.

◆ getPostStopWait()

double yarp::manager::Executable::getPostStopWait ( )
inline

Definition at line 117 of file executable.h.

◆ getResources()

ResourceContainer& yarp::manager::Executable::getResources ( )
inline

Definition at line 95 of file executable.h.

◆ getStdio()

const char* yarp::manager::Executable::getStdio ( )
inline

Definition at line 108 of file executable.h.

◆ getWorkDir()

const char* yarp::manager::Executable::getWorkDir ( )
inline

Definition at line 109 of file executable.h.

◆ kill()

void Executable::kill ( )

Definition at line 122 of file executable.cpp.

◆ onBrokerStdout()

void Executable::onBrokerStdout ( const char *  msg)
overridevirtual

Reimplemented from yarp::manager::BrokerEventSink.

Definition at line 223 of file executable.cpp.

◆ removeBroker()

void yarp::manager::Executable::removeBroker ( )
inline

Definition at line 102 of file executable.h.

◆ restoreOriginalPostExecWait()

void yarp::manager::Executable::restoreOriginalPostExecWait ( )
inline

Definition at line 120 of file executable.h.

◆ restoreOriginalPostStopWait()

void yarp::manager::Executable::restoreOriginalPostStopWait ( )
inline

Definition at line 122 of file executable.h.

◆ setAndInitializeBroker()

void Executable::setAndInitializeBroker ( Broker _broker)

Definition at line 201 of file executable.cpp.

◆ setCommand()

void yarp::manager::Executable::setCommand ( const char *  val)
inline

Definition at line 85 of file executable.h.

◆ setEnv()

void yarp::manager::Executable::setEnv ( const char *  val)
inline

Definition at line 90 of file executable.h.

◆ setHost()

void yarp::manager::Executable::setHost ( const char *  val)
inline

Definition at line 87 of file executable.h.

◆ setID()

void yarp::manager::Executable::setID ( int  id)
inline

Definition at line 84 of file executable.h.

◆ setOriginalPostExecWait()

void yarp::manager::Executable::setOriginalPostExecWait ( double  t)
inline

Definition at line 119 of file executable.h.

◆ setOriginalPostStopWait()

void yarp::manager::Executable::setOriginalPostStopWait ( double  t)
inline

Definition at line 121 of file executable.h.

◆ setParam()

void yarp::manager::Executable::setParam ( const char *  val)
inline

Definition at line 86 of file executable.h.

◆ setPostExecWait()

void yarp::manager::Executable::setPostExecWait ( double  t)
inline

Definition at line 114 of file executable.h.

◆ setPostStopWait()

void yarp::manager::Executable::setPostStopWait ( double  t)
inline

Definition at line 116 of file executable.h.

◆ setStdio()

void yarp::manager::Executable::setStdio ( const char *  val)
inline

Definition at line 88 of file executable.h.

◆ setWorkDir()

void yarp::manager::Executable::setWorkDir ( const char *  val)
inline

Definition at line 89 of file executable.h.

◆ shouldChangeBroker()

bool Executable::shouldChangeBroker ( )

Definition at line 185 of file executable.cpp.

◆ start()

bool Executable::start ( )

Definition at line 79 of file executable.cpp.

◆ startWatchDog()

bool Executable::startWatchDog ( )

Definition at line 210 of file executable.cpp.

◆ state()

RSTATE Executable::state ( )

Definition at line 139 of file executable.cpp.

◆ stop()

void Executable::stop ( )

Definition at line 102 of file executable.cpp.

◆ stopWatchDog()

void Executable::stopWatchDog ( )

Definition at line 218 of file executable.cpp.


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