OrocosComponentLibrary
2.9.0
|
Public Member Functions | |
CorbaDeploymentComponent (const std::string &name, const std::string &siteFile="") | |
bool | createServer (const std::string &tc, bool use_naming) |
Creates a ControlTask CORBA server for a given peer TaskContext. | |
bool | createAliasServer (const std::string &tc, const std::string &alias, bool use_naming) |
Creates a ControlTask CORBA server for a given peer TaskContext. | |
RTT::TaskContext * | myGetPeer (std::string name) |
bool | connectPeers (const std::string &one, const std::string &other) |
Make two components peers in both directions, such that both can use each other's services. More... | |
bool | connectPorts (const std::string &one, const std::string &other) |
Establish a data flow connection between two tasks. More... | |
bool | connectPorts (const std::string &one, const std::string &one_port, const std::string &other, const std::string &other_port) |
Connect two named ports of components. More... | |
bool | connect (const std::string &one, const std::string &other, ConnPolicy policy) |
Connect two named ports of components. More... | |
bool | stream (const std::string &port, ConnPolicy policy) |
Creates a stream from a given port of a component. More... | |
bool | createStream (const std::string &component, const std::string &port, ConnPolicy policy) |
bool | connectServices (const std::string &one, const std::string &other) |
Connects the required services of one component to the provided services of another and vice versa. More... | |
bool | connectOperations (const std::string &required, const std::string &provided) |
Connects a required operation to a provided operation. More... | |
bool | addPeer (const std::string &from, const std::string &target) |
Make one component a peer of the other, in one direction, such that one can use the services of the other. More... | |
bool | aliasPeer (const std::string &from, const std::string &target, const std::string &alias) |
Make one component a peer of the other, in one direction, with an alternative name, such that one can use the services of the other and knows it under the name of the alias. More... | |
bool | import (const std::string &package) |
Import a component package or directory. More... | |
void | path (const std::string &path) |
Add an additional path to search for component packages. More... | |
bool | loadLibrary (const std::string &name) |
Use this command to load a plugin or component library into the memory of the current process. More... | |
bool | reloadLibrary (const std::string &filepath) |
Use this command to reload a component library into the memory of the current process. More... | |
bool | loadComponent (const std::string &name, const std::string &type) |
Load a new component in the current process. More... | |
bool | loadService (const std::string &component, const std::string &service) |
Loads a service in the given component. More... | |
bool | unloadComponent (const std::string &name) |
Unload a loaded component from the current process. More... | |
void | displayComponentTypes () const |
This function prints out the component types this DeploymentComponent can create. More... | |
std::vector< std::string > | getComponentTypes () const |
This function returns the component types this DeploymentComponent can create in a comma separated list. More... | |
bool | setPeriodicActivity (const std::string &comp_name, double period, int priority, int scheduler) |
(Re-)set the activity of a component with a periodic activity. More... | |
bool | setActivity (const std::string &comp_name, double period, int priority, int scheduler) |
(Re-)set the activity of a component with an activity. More... | |
bool | setFileDescriptorActivity (const std::string &comp_name, double timeout, int priority, int scheduler) |
(Re-)set the activity of a component with a FileDescriptor activity. More... | |
bool | setActivityOnCPU (const std::string &comp_name, double period, int priority, int scheduler, unsigned int cpu_nr) |
(Re-)set the activity of a component and run it on a given CPU. More... | |
bool | setSequentialActivity (const std::string &comp_name) |
(Re-)set the activity of a component with a (threadless, reactive) sequential activity. More... | |
bool | setSlaveActivity (const std::string &comp_name, double period) |
(Re-)set the activity of a component with a (stand alone) slave activity. More... | |
bool | setMasterSlaveActivity (const std::string &comp_name, const std::string &master_name) |
(Re-)set the activity of a component with a slave activity with master. More... | |
bool | setNamedActivity (const std::string &comp_name, const std::string &act_type, double period, int priority, int scheduler, const std::string &master_name="") |
(Re-)set the activity of a component. More... | |
bool | setNamedActivity (const std::string &comp_name, const std::string &act_type, double period, int priority, int scheduler, unsigned cpu_affinity, const std::string &master_name="") |
(Re-)set the activity of a component. More... | |
bool | setWaitPeriodPolicy (const std::string &comp_name, int policy) |
(Re-)set the wait period policy of a component's thread. More... | |
bool | loadComponents (const std::string &config_file) |
Load a (partial) application XML configuration from disk. More... | |
bool | loadComponentsInGroup (const std::string &config_file, const int group) |
Load a (partial) application XML configuration from disk into a specific group. More... | |
bool | configureComponents () |
Configure the components with loaded configuration(s). More... | |
bool | configureComponentsGroup (const int group) |
Configure the components in group group. More... | |
bool | startComponents () |
Start all components in the current configuration which have AutoStart set to true. More... | |
bool | startComponentsGroup (const int group) |
Start all components in group group which have AutoStart set to true. More... | |
void | clearConfiguration () |
Clear all loaded configuration options. More... | |
bool | stopComponents () |
Stop all loaded and running components. | |
bool | stopComponentsGroup (const int group) |
Stop all loaded and running components in group group. More... | |
bool | cleanupComponents () |
Cleanup all loaded and not running components. | |
bool | cleanupComponentsGroup (const int group) |
Cleanup all loaded and not running components. More... | |
bool | unloadComponents () |
Unload all loaded and not running components. | |
bool | unloadComponentsGroup (const int group) |
Unload all loaded and not running components in group group. More... | |
bool | kickStart (const std::string &file_name) |
This function runs loadComponents, configureComponents and startComponents in a row, given no failures occur along the way. | |
bool | kickOutComponent (const std::string &comp_name) |
Stop, cleanup and unload a single component which were loaded by this component. More... | |
void | kickOut (const std::string &config_file) |
Identical to kickOutAll, but it reads the name of the Components to kickOut from an XML file. More... | |
bool | kickOutAll () |
Stop, cleanup and unload all components loaded by the DeploymentComponent. More... | |
bool | kickOutGroup (const int group) |
Stop, cleanup and unload all components in group group. | |
bool | runScript (const std::string &file_name) |
Scripting-alternative to kickStart: runs this script in the Orocos scripting service. | |
bool | configure (const std::string &name) |
Configure a component by loading the property file 'name.cpf' for component with name name. More... | |
bool | configureFromFile (const std::string &name, const std::string &filename) |
Configure a component by loading a property file. More... | |
bool | loadConfiguration (const std::string &config_file) |
Load a (partial) application XML configuration from disk. More... | |
bool | loadConfigurationString (const std::string &config_text) |
Identical to loadConfiguration, but reads the XML from a string instead of a file. More... | |
const RTT::FactoryMap & | getFactories () const |
Returns the factory singleton which creates all types of components for the DeploymentComponent. | |
bool | configureComponent (RTT::TaskContext *instance) |
Configure a single loaded and running component. More... | |
bool | configureComponent (const std::string &comp_name) |
Configure a single loaded and running components. More... | |
bool | startComponent (RTT::TaskContext *instance) |
Stop a single loaded and running component. More... | |
bool | startComponent (const std::string &comp_name) |
Stop a single loaded and running components. More... | |
bool | stopComponent (RTT::TaskContext *instance) |
Stop a single loaded and running component. More... | |
bool | stopComponent (const std::string &comp_name) |
Stop a single loaded and running components. More... | |
bool | cleanupComponent (RTT::TaskContext *instance) |
Cleanup a single loaded and not running component. More... | |
bool | cleanupComponent (const std::string &comp_name) |
Cleanup a single loaded and not running component. More... | |
void | shutdownDeployment () |
Clean up and shutdown the entire deployment If an operation named "shutdownDeployment" is found in a peer component named "Application", then that operation is called otherwise if a scripting program named "shutdown" is loaded, then that will be executed, otherwise nothing occurs. | |
bool | waitForSignals (int *sigs, std::size_t sig_count) |
Waits for any signal in the list and then returns. More... | |
bool | waitForSignal (int signumber) |
Waits for any signal and then returns. More... | |
bool | waitForInterrupt () |
Waits for SIGINT, SIGTERM or SIGHUP and then returns. More... | |
Protected Types | |
typedef std::map< std::string, ConnectionData > | ConMap |
This maps connection names to associated ports. | |
typedef std::map< std::string, ComponentData > | CompMap |
This list and map hold the dynamically loaded components. | |
typedef std::list< std::string > | CompList |
Protected Member Functions | |
virtual bool | componentLoaded (RTT::TaskContext *c) |
Check if c is a proxy or a local object. More... | |
virtual void | componentUnloaded (RTT::TaskContext *c) |
Removes the CORBA server for this component. More... | |
bool | configureHook () |
This function imports available plugins from the path formed by the expression. More... | |
bool | unloadComponentImpl (CompMap::iterator cit) |
This method removes all references to the component hold in cit, on the condition that it is not running. | |
Service::shared_ptr | stringToService (std::string const &names) |
Converts a dot-separated path to a service to a Service object. More... | |
ServiceRequester::shared_ptr | stringToServiceRequester (std::string const &names) |
Converts a dot-separated path to a service to a ServiceRequester object. More... | |
base::PortInterface * | stringToPort (std::string const &names) |
Converts a dot-separated path to a service to a Port object. More... | |
Protected Attributes | |
RTT::PropertyBag | root |
This bag stores the current configuration. More... | |
std::string | compPath |
int | defaultWaitPeriodPolicy |
RTT::Property< bool > | autoUnload |
RTT::Attribute< bool > | validConfig |
RTT::Constant< int > | sched_RT |
RTT::Constant< int > | sched_OTHER |
RTT::Constant< int > | lowest_Priority |
RTT::Constant< int > | highest_Priority |
RTT::Attribute< std::string > | target |
int | nextGroup |
Next group number. | |
ConMap | conmap |
CompMap | compmap |
CompList | comps |
Definition at line 37 of file CorbaDeploymentComponent.hpp.
|
inherited |
Make one component a peer of the other, in one direction, such that one can use the services of the other.
from | The component that must 'see' target and use its services. |
target | The component that is 'seen' and used by from. |
Definition at line 356 of file DeploymentComponent.cpp.
Referenced by DeploymentComponent::configureComponentsGroup(), DeploymentComponent::DeploymentComponent(), and DeploymentComponent::loadComponent().
|
inherited |
Make one component a peer of the other, in one direction, with an alternative name, such that one can use the services of the other and knows it under the name of the alias.
from | The component that must 'see' target and use its services. |
target | The component that is 'seen' and used by from. |
alias | The name of the target as it will be seen by from. |
Definition at line 376 of file DeploymentComponent.cpp.
Referenced by DeploymentComponent::DeploymentComponent().
|
inherited |
Cleanup a single loaded and not running component.
instance | instance pointer of the component. |
Definition at line 2211 of file DeploymentComponent.cpp.
Referenced by DeploymentComponent::kickOutComponent().
|
inlineinherited |
Cleanup a single loaded and not running component.
comp_name | name of the component. |
Definition at line 908 of file DeploymentComponent.hpp.
|
inherited |
Cleanup all loaded and not running components.
group | The group number to cleanup |
Definition at line 1660 of file DeploymentComponent.cpp.
References DeploymentComponent::ComponentData::group, DeploymentComponent::ComponentData::instance, and DeploymentComponent::ComponentData::loadedProperties.
Referenced by DeploymentComponent::cleanupComponents(), and DeploymentComponent::kickOutGroup().
|
inherited |
Clear all loaded configuration options.
This does not alter any component.
Definition at line 1741 of file DeploymentComponent.cpp.
References DeploymentComponent::root.
Referenced by DeploymentComponent::DeploymentComponent().
|
protectedvirtual |
Check if c is a proxy or a local object.
If it is a local object, make it a server.
Reimplemented from DeploymentComponent.
Definition at line 122 of file CorbaDeploymentComponent.cpp.
|
protectedvirtual |
Removes the CORBA server for this component.
c | a valid TaskContext object. |
Reimplemented from DeploymentComponent.
Definition at line 145 of file CorbaDeploymentComponent.cpp.
|
inherited |
Configure a component by loading the property file 'name.cpf' for component with name name.
name | The name of the component to configure. The file used will be 'name.cpf'. |
Definition at line 2157 of file DeploymentComponent.cpp.
References DeploymentComponent::configureFromFile().
Referenced by DeploymentComponent::DeploymentComponent().
|
inherited |
Configure a single loaded and running component.
instance | instance pointer of the component. |
Definition at line 2229 of file DeploymentComponent.cpp.
Referenced by DeploymentComponent::DeploymentComponent().
|
inlineinherited |
Configure a single loaded and running components.
comp_name | name of the component. |
Definition at line 857 of file DeploymentComponent.hpp.
|
inherited |
Configure the components with loaded configuration(s).
This function connects components and data ports, reads properties for the components, attaches activities and loads program and state machine scripts. If a component XML entry has the AutoConf element, configure() will be called upon this component as well. If the configuration fails halfway, the system is configured as complete as possible. You can try to reconfigure by loading a new configuration (using loadConfiguration ) and call configureComponents again to resolve remaining issues.
This function tries to apply the configuration with a best effort. For example, if a program must be loaded in the component, and a program with that same name is already present, the present one is unloaded and the new one is attempted to be loaded. If that fails, the configuration process leaves the scripts as-is and proceeds with further configuration steps of the same component and other components.
The order of configuration depends on the order of components during loadConfiguration. The first encountered component is configured first. If additional loadConfiguration operations refer to the same component, the configuration order is not changed.
Definition at line 1256 of file DeploymentComponent.cpp.
References DeploymentComponent::configureComponentsGroup(), and DeploymentComponent::nextGroup.
Referenced by DeploymentComponent::DeploymentComponent().
|
inherited |
Configure the components in group group.
Definition at line 1267 of file DeploymentComponent.cpp.
References DeploymentComponent::addPeer(), DeploymentComponent::ComponentData::group, DeploymentComponent::ComponentData::instance, DeploymentComponent::ComponentData::loaded, DeploymentComponent::root, and DeploymentComponent::runScript().
Referenced by DeploymentComponent::configureComponents(), and DeploymentComponent::kickStart().
|
inherited |
Configure a component by loading a property file.
name | The name of the component to configure |
filename | The filename where the configuration is in. |
Definition at line 2162 of file DeploymentComponent.cpp.
Referenced by DeploymentComponent::configure().
|
protectedinherited |
This function imports available plugins from the path formed by the expression.
Definition at line 260 of file DeploymentComponent.cpp.
|
inherited |
Connect two named ports of components.
The direction of the connection is determined by the read/write port types.
one | A dot-separated path to a port in a service |
other | A dot-separated path to a port in a service |
policy | The connection policy of the new connetion. |
Definition at line 566 of file DeploymentComponent.cpp.
References DeploymentComponent::stringToPort().
Referenced by DeploymentComponent::DeploymentComponent().
|
inherited |
Connects a required operation to a provided operation.
required | The dot-separated name of a required operation |
provided | The dot-separated name of a provided operation |
Definition at line 620 of file DeploymentComponent.cpp.
References DeploymentComponent::stringToService(), and DeploymentComponent::stringToServiceRequester().
Referenced by DeploymentComponent::DeploymentComponent().
|
inherited |
Make two components peers in both directions, such that both can use each other's services.
one | The component that must 'see' other. |
other | The component that must 'see' one. |
Definition at line 340 of file DeploymentComponent.cpp.
Referenced by DeploymentComponent::DeploymentComponent().
|
inherited |
Establish a data flow connection between two tasks.
The direction of the connection is determined by the read/write port types.
one | The first component |
other | The second component |
Definition at line 495 of file DeploymentComponent.cpp.
Referenced by DeploymentComponent::DeploymentComponent().
|
inherited |
Connect two named ports of components.
The direction of the connection is determined by the read/write port types.
one | Name of the first component or a dot-separated path to its service |
one_port | Name of the port of the first component to connect to other_port |
other | Name of the second component or a dot-separated path to its service |
other_port | Name of the port of the second component to connect to one_port |
Definition at line 513 of file DeploymentComponent.cpp.
References DeploymentComponent::stringToService().
|
inherited |
Connects the required services of one component to the provided services of another and vice versa.
one | The name of a provided service or a dot-separated path to a Service |
one | The name of a required service or a dot-separated path to a ServiceRequester |
Definition at line 602 of file DeploymentComponent.cpp.
Referenced by DeploymentComponent::DeploymentComponent().
|
inherited |
Definition at line 552 of file DeploymentComponent.cpp.
References DeploymentComponent::stringToService().
Referenced by DeploymentComponent::DeploymentComponent().
|
inherited |
This function prints out the component types this DeploymentComponent can create.
Definition at line 1911 of file DeploymentComponent.cpp.
References DeploymentComponent::getFactories().
Referenced by DeploymentComponent::DeploymentComponent().
|
inherited |
This function returns the component types this DeploymentComponent can create in a comma separated list.
Definition at line 1922 of file DeploymentComponent.cpp.
References DeploymentComponent::getFactories().
Referenced by DeploymentComponent::DeploymentComponent().
|
inherited |
Import a component package or directory.
The import statement searches through the component paths set with path() or set using the RTT_COMPONENT_PATH environment variable.
package | A (ros) package or directory name. All components, plugins and typekits in package will be loaded and become available to the application. As a special case, you may specify a path to a library directly, which will be loaded when found. |
Definition at line 1748 of file DeploymentComponent.cpp.
Referenced by DeploymentComponent::DeploymentComponent().
|
inherited |
Identical to kickOutAll, but it reads the name of the Components to kickOut from an XML file.
config_file | name of an XML file (probably the same used by loadComponents() or kickStart() ). |
Definition at line 2184 of file DeploymentComponent.cpp.
References DeploymentComponent::kickOutComponent().
Referenced by DeploymentComponent::DeploymentComponent().
|
inherited |
Stop, cleanup and unload all components loaded by the DeploymentComponent.
Definition at line 725 of file DeploymentComponent.cpp.
References DeploymentComponent::kickOutGroup(), and DeploymentComponent::nextGroup.
Referenced by DeploymentComponent::DeploymentComponent(), and DeploymentComponent::~DeploymentComponent().
|
inherited |
Stop, cleanup and unload a single component which were loaded by this component.
comp_name | name of the component. |
Definition at line 2285 of file DeploymentComponent.cpp.
References DeploymentComponent::cleanupComponent(), DeploymentComponent::root, DeploymentComponent::stopComponent(), and DeploymentComponent::unloadComponent().
Referenced by DeploymentComponent::DeploymentComponent(), and DeploymentComponent::kickOut().
|
inherited |
Load a new component in the current process.
It wil appear as a peer with name name of this component.
name | Name the new component will receive. |
type | The type of the component. This is usually a library (.dll or .so) name. |
Definition at line 1789 of file DeploymentComponent.cpp.
References DeploymentComponent::addPeer(), and DeploymentComponent::componentLoaded().
Referenced by DeploymentComponent::DeploymentComponent(), and DeploymentComponent::loadComponentsInGroup().
|
inherited |
Load a (partial) application XML configuration from disk.
The necessary components are located or loaded, but no component configuration is yet applied. One can load multiple configurations and call configureComponents() once to apply all settings. In case of duplicate information is the latest loaded configuration option used. The components are loaded into the next group number, and the next group number is incremented.
config_file | A file on local disk containing the XML configuration. |
Definition at line 764 of file DeploymentComponent.cpp.
References DeploymentComponent::loadComponentsInGroup(), and DeploymentComponent::nextGroup.
Referenced by DeploymentComponent::DeploymentComponent(), and DeploymentComponent::loadConfiguration().
|
inherited |
Load a (partial) application XML configuration from disk into a specific group.
If the group already exists, then adds to that group. Does not affect existing members of the group.
config_file | A file on local disk containing the XML configuration. |
group | The group number to load into |
Definition at line 771 of file DeploymentComponent.cpp.
References DeploymentComponent::loadComponent(), DeploymentComponent::loadLibrary(), DeploymentComponent::path(), DeploymentComponent::root, and DeploymentComponent::setNamedActivity().
Referenced by DeploymentComponent::kickStart(), and DeploymentComponent::loadComponents().
|
inherited |
Load a (partial) application XML configuration from disk.
The necessary components are located or loaded, but no component configuration is yet applied. One can load multiple configurations and call configureComponents() once to apply all settings. In case of duplicate information is the latest loaded configuration option used.
config_file | A file on local disk containing the XML configuration. |
Definition at line 759 of file DeploymentComponent.cpp.
References DeploymentComponent::loadComponents().
Referenced by DeploymentComponent::DeploymentComponent(), and DeploymentComponent::loadConfigurationString().
|
inherited |
Identical to loadConfiguration, but reads the XML from a string instead of a file.
config_text | A string containing the XML configuration. |
Definition at line 666 of file DeploymentComponent.cpp.
References DeploymentComponent::loadConfiguration().
Referenced by DeploymentComponent::DeploymentComponent().
|
inherited |
Use this command to load a plugin or component library into the memory of the current process.
This is a low-level function which you should only use if you could not use import().
name | an absolute or relative path to a loadable library. |
Definition at line 1761 of file DeploymentComponent.cpp.
Referenced by DeploymentComponent::DeploymentComponent(), and DeploymentComponent::loadComponentsInGroup().
|
inherited |
Loads a service in the given component.
If a service with the name of service is already loaded, does nothing and returns true.
component | A peer of this component. |
service | A service discovered by the PluginLoader which will be loaded into component. |
Definition at line 1773 of file DeploymentComponent.cpp.
Referenced by DeploymentComponent::DeploymentComponent().
|
inherited |
Add an additional path to search for component packages.
a | colon or semi-colon separated list of directories to search for. Typically, paths have the form prefix1/lib/orocos:prefix2/lib/orocos etc. |
Definition at line 1754 of file DeploymentComponent.cpp.
Referenced by DeploymentComponent::DeploymentComponent(), and DeploymentComponent::loadComponentsInGroup().
|
inherited |
Use this command to reload a component library into the memory of the current process.
This is a low-level function which you should only use for testing/development
filepath | an absolute path to a loaded library. |
Definition at line 1767 of file DeploymentComponent.cpp.
Referenced by DeploymentComponent::DeploymentComponent().
|
inherited |
(Re-)set the activity of a component with an activity.
comp_name | The name of the component to change. |
period | The period of the activity (or 0.0 if non periodic). |
priority | The scheduler priority (OS dependent). |
scheduler | The scheduler type ORO_SCHED_RT or ORO_SCHED_OTHER. |
Definition at line 1932 of file DeploymentComponent.cpp.
References DeploymentComponent::setNamedActivity().
Referenced by DeploymentComponent::DeploymentComponent().
|
inherited |
(Re-)set the activity of a component and run it on a given CPU.
comp_name | The name of the component to change. |
period | The period of the activity (or 0.0 if non periodic). |
priority | The scheduler priority (OS dependent). |
scheduler | The scheduler type ORO_SCHED_RT or ORO_SCHED_OTHER. |
cpu_nr | The CPU to run the thread on. Numbering starts from zero. @return false if one of the parameters does not match or if the component is running. |
Definition at line 1960 of file DeploymentComponent.cpp.
References DeploymentComponent::setNamedActivity().
Referenced by DeploymentComponent::DeploymentComponent().
|
inherited |
(Re-)set the activity of a component with a FileDescriptor activity.
comp_name | The name of the component to change. |
timeout | The timeout of the activity (or 0.0 if no timeout). |
priority | The scheduler priority (OS dependent). |
scheduler | The scheduler type ORO_SCHED_RT or ORO_SCHED_OTHER. |
Definition at line 1946 of file DeploymentComponent.cpp.
References DeploymentComponent::setNamedActivity().
Referenced by DeploymentComponent::DeploymentComponent().
|
inherited |
(Re-)set the activity of a component with a slave activity with master.
comp_name | The name of the component to change. |
master_name | The name of the master component. |
Definition at line 2014 of file DeploymentComponent.cpp.
References DeploymentComponent::setNamedActivity().
Referenced by DeploymentComponent::DeploymentComponent().
|
inherited |
(Re-)set the activity of a component.
CPU affinity defaults to all available CPUs
comp_name | The name of the component to change. |
act_type | The RTT::Activity type: 'Activity', 'PeriodicActivity', 'SequentialActivity' or 'SlaveActivity'. |
priority | The scheduler priority (OS dependent). |
period | The period of the activity. |
scheduler | The scheduler type ORO_SCHED_RT or ORO_SCHED_OTHER. |
master_name | The name of the master component in case of a extras::SlaveActivity with a master. |
Definition at line 2028 of file DeploymentComponent.cpp.
Referenced by DeploymentComponent::loadComponentsInGroup(), DeploymentComponent::setActivity(), DeploymentComponent::setActivityOnCPU(), DeploymentComponent::setFileDescriptorActivity(), DeploymentComponent::setMasterSlaveActivity(), DeploymentComponent::setPeriodicActivity(), DeploymentComponent::setSequentialActivity(), and DeploymentComponent::setSlaveActivity().
|
inherited |
(Re-)set the activity of a component.
comp_name | The name of the component to change. |
act_type | The RTT::Activity type: 'Activity', 'PeriodicActivity', 'SequentialActivity' or 'SlaveActivity'. |
priority | The scheduler priority (OS dependent). |
period | The period of the activity. |
scheduler | The scheduler type ORO_SCHED_RT or ORO_SCHED_OTHER. |
cpu_affinity | The prefered cpu to run on (a mask) |
master_name | The name of the master component in case of a extras::SlaveActivity with a master. |
Definition at line 2042 of file DeploymentComponent.cpp.
|
inherited |
(Re-)set the activity of a component with a periodic activity.
comp_name | The name of the component to change. |
period | The period of the activity. |
priority | The scheduler priority (OS dependent). |
scheduler | The scheduler type ORO_SCHED_RT or ORO_SCHED_OTHER. |
Definition at line 1975 of file DeploymentComponent.cpp.
References DeploymentComponent::setNamedActivity().
Referenced by DeploymentComponent::DeploymentComponent().
|
inherited |
(Re-)set the activity of a component with a (threadless, reactive) sequential activity.
comp_name | The name of the component to change. |
Definition at line 2002 of file DeploymentComponent.cpp.
References DeploymentComponent::setNamedActivity().
Referenced by DeploymentComponent::DeploymentComponent().
|
inherited |
(Re-)set the activity of a component with a (stand alone) slave activity.
comp_name | The name of the component to change. |
period | The period of the activity. |
Definition at line 1989 of file DeploymentComponent.cpp.
References DeploymentComponent::setNamedActivity().
Referenced by DeploymentComponent::DeploymentComponent().
|
inherited |
(Re-)set the wait period policy of a component's thread.
comp_name | The name of the component to change. |
policy | The new policy ORO_WAIT_ABS or ORO_WAIT_REL |
Definition at line 2140 of file DeploymentComponent.cpp.
Referenced by DeploymentComponent::DeploymentComponent().
|
inherited |
Stop a single loaded and running component.
instance | instance pointer of the component. |
Definition at line 2247 of file DeploymentComponent.cpp.
Referenced by DeploymentComponent::DeploymentComponent().
|
inlineinherited |
Stop a single loaded and running components.
comp_name | name of the component. |
Definition at line 874 of file DeploymentComponent.hpp.
|
inherited |
Start all components in the current configuration which have AutoStart set to true.
Definition at line 1555 of file DeploymentComponent.cpp.
References DeploymentComponent::nextGroup, and DeploymentComponent::startComponentsGroup().
Referenced by DeploymentComponent::DeploymentComponent().
|
inherited |
Start all components in group group which have AutoStart set to true.
Definition at line 1565 of file DeploymentComponent.cpp.
References DeploymentComponent::ComponentData::group, DeploymentComponent::ComponentData::instance, and DeploymentComponent::root.
Referenced by DeploymentComponent::kickStart(), and DeploymentComponent::startComponents().
|
inherited |
Stop a single loaded and running component.
instance | instance pointer of the component. |
Definition at line 2266 of file DeploymentComponent.cpp.
Referenced by DeploymentComponent::DeploymentComponent(), and DeploymentComponent::kickOutComponent().
|
inlineinherited |
Stop a single loaded and running components.
comp_name | name of the component. |
Definition at line 891 of file DeploymentComponent.hpp.
|
inherited |
Stop all loaded and running components in group group.
group | The group number to stop |
Definition at line 1628 of file DeploymentComponent.cpp.
References DeploymentComponent::ComponentData::group, and DeploymentComponent::ComponentData::instance.
Referenced by DeploymentComponent::kickOutGroup(), and DeploymentComponent::stopComponents().
|
inherited |
Creates a stream from a given port of a component.
port | The dot-separated path to an input or output port of component or service. |
policy | The connection policy that instructs how to set up the stream. The policy.transport field is mandatory, the policy.name_id field is highly recommended. |
Definition at line 593 of file DeploymentComponent.cpp.
References DeploymentComponent::stringToPort().
Referenced by DeploymentComponent::DeploymentComponent().
|
protectedinherited |
Converts a dot-separated path to a service to a Port object.
name | a dot-separated path name to a port. The first part of the name must be the component name. Example: "Controller.arm.input". |
Definition at line 456 of file DeploymentComponent.cpp.
Referenced by DeploymentComponent::connect(), and DeploymentComponent::stream().
|
protectedinherited |
Converts a dot-separated path to a service to a Service object.
name | a dot-separated path name to a service. The first part of the name must be the component name. For example 'Controller.arm'. |
Definition at line 392 of file DeploymentComponent.cpp.
Referenced by DeploymentComponent::connectOperations(), DeploymentComponent::connectPorts(), and DeploymentComponent::createStream().
|
protectedinherited |
Converts a dot-separated path to a service to a ServiceRequester object.
name | a dot-separated path name to a service. The first part of the name must be the component name. For example 'Controller.arm'. |
Definition at line 426 of file DeploymentComponent.cpp.
Referenced by DeploymentComponent::connectOperations().
|
inherited |
Unload a loaded component from the current process.
It may not be running.
name | The name of a component loaded with loadComponent(). |
Definition at line 1892 of file DeploymentComponent.cpp.
References DeploymentComponent::unloadComponentImpl().
Referenced by DeploymentComponent::DeploymentComponent(), and DeploymentComponent::kickOutComponent().
|
inherited |
Unload all loaded and not running components in group group.
group | The group number to unload |
Definition at line 1715 of file DeploymentComponent.cpp.
References DeploymentComponent::ComponentData::group, and DeploymentComponent::unloadComponentImpl().
Referenced by DeploymentComponent::kickOutGroup(), and DeploymentComponent::unloadComponents().
|
inherited |
Waits for SIGINT, SIGTERM or SIGHUP and then returns.
Definition at line 288 of file DeploymentComponent.cpp.
References DeploymentComponent::waitForSignals().
Referenced by DeploymentComponent::DeploymentComponent().
|
inherited |
Waits for any signal and then returns.
Definition at line 296 of file DeploymentComponent.cpp.
References DeploymentComponent::waitForSignals().
Referenced by DeploymentComponent::DeploymentComponent().
|
inherited |
Waits for any signal in the list and then returns.
sigs | a pointer to the first element in the list of signals |
the | number of signals in the list |
Definition at line 300 of file DeploymentComponent.cpp.
Referenced by DeploymentComponent::waitForInterrupt(), and DeploymentComponent::waitForSignal().
|
protectedinherited |
This bag stores the current configuration.
It is the cumulation of all loadConfiguration() calls.
Definition at line 94 of file DeploymentComponent.hpp.
Referenced by DeploymentComponent::clearConfiguration(), DeploymentComponent::configureComponentsGroup(), DeploymentComponent::kickOutComponent(), DeploymentComponent::loadComponentsInGroup(), DeploymentComponent::startComponentsGroup(), and DeploymentComponent::unloadComponentImpl().