AceSmartSoft API Documentation
|
Master part of parameter pattern. More...
#include <smartParameter.hh>
Public Member Functions | |
ParameterMaster (SmartComponent *component) | |
Constructor. More... | |
virtual | ~ParameterMaster () |
Destructor. More... | |
Smart::StatusCode | sendParameterWait (const SmartACE::CommParameterRequest &request, SmartACE::CommParameterResponse &response, const std::string &comp_name, const std::string &service_name="param") |
Blocking call to send a parameter set to a component indicated by the comp_name. More... | |
Master part of parameter pattern.
Provides a generic port to send configuration sets to components in the system. Typically the master part is used within the sequencer. For each point in time there is a point-to-point connection between one Parameter Master and one Parameter Slave. In total one Parameter Master can send parameter-sets to several Parameter Slaves. There are three different types of parameters (which are encoded in the CommParameterRequest):
TODO: a demonstration component
SmartACE::ParameterMaster::ParameterMaster | ( | SmartComponent * | component | ) |
Constructor.
component | management class of the component |
(Currently exception not thrown)
|
virtual |
Destructor.
Smart::StatusCode SmartACE::ParameterMaster::sendParameterWait | ( | const SmartACE::CommParameterRequest & | request, |
SmartACE::CommParameterResponse & | response, | ||
const std::string & | comp_name, | ||
const std::string & | service_name = "param" |
||
) |
Blocking call to send a parameter set to a component indicated by the comp_name.
Connect the ParameterMaster to the ParameterSlave indicated by the comp_name and the optional service_name. Then, send the parameter set stored in the request communication object. After that, await the answer which is written into the response communication object.
request | contains the parameter-set to transfer to the ParameterSlave |
response | contains the response from the ParameterSlave |
comp_name | name of the ParameterSlave component |
service_name | (optional) name of the service in component comp_name to connect to |