#include <SdoConfiguration.h>
Public Member Functions | |
Configuration_impl (RTC::ConfigAdmin &configAdmin) | |
virtual | ~Configuration_impl () |
virtual CORBA::Boolean | set_device_profile (const DeviceProfile &dProfile) throw (InvalidParameter, NotAvailable, InternalError) |
[CORBA interface] Set DeviceProfile of SDO | |
virtual CORBA::Boolean | set_service_profile (const ServiceProfile &sProfile) throw (InvalidParameter, NotAvailable, InternalError) |
[CORBA interface] Set SDO's ServiceProfile | |
virtual CORBA::Boolean | add_organization (Organization_ptr org) throw (InvalidParameter, NotAvailable, InternalError) |
[CORBA interface] Add Organization | |
virtual CORBA::Boolean | remove_service_profile (const char *id) throw (InvalidParameter, NotAvailable, InternalError) |
[CORBA interface] Remove ServiceProfile | |
virtual CORBA::Boolean | remove_organization (const char *organization_id) throw (InvalidParameter, NotAvailable, InternalError) |
[CORBA interface] Remove the reference of Organization | |
virtual ParameterList * | get_configuration_parameters () throw (NotAvailable, InternalError) |
[CORBA interface] Getting a list of configuration parameter | |
virtual NVList * | get_configuration_parameter_values () throw (NotAvailable, InternalError) |
[CORBA interface] Getting value list of configuration parameter | |
virtual CORBA::Any * | get_configuration_parameter_value (const char *name) throw (InvalidParameter, NotAvailable, InternalError) |
[CORBA interface] Getting value of configuration parameter | |
virtual CORBA::Boolean | set_configuration_parameter (const char *name, const CORBA::Any &value) throw (InvalidParameter, NotAvailable, InternalError) |
[CORBA interface] Modify the parameter value | |
virtual ConfigurationSetList * | get_configuration_sets () throw (NotAvailable, InternalError) |
[CORBA interface] Getting list of ConfigurationSet | |
virtual ConfigurationSet * | get_configuration_set (const char *config_id) throw (NotAvailable, InternalError) |
[CORBA interface] Getting a ConfigurationSet | |
virtual CORBA::Boolean | set_configuration_set_values (const char *config_id, const ConfigurationSet &configuration_set) throw (InvalidParameter, NotAvailable, InternalError) |
[CORBA interface] Set ConfigurationSet | |
virtual ConfigurationSet * | get_active_configuration_set () throw (NotAvailable, InternalError) |
[CORBA interface] Get active ConfigurationSet | |
virtual CORBA::Boolean | add_configuration_set (const ConfigurationSet &configuration_set) throw (InvalidParameter, NotAvailable, InternalError) |
[CORBA interface] Add ConfigurationSet | |
virtual CORBA::Boolean | remove_configuration_set (const char *config_id) throw (InvalidParameter, NotAvailable, InternalError) |
[CORBA interface] Remove ConfigurationSet | |
virtual CORBA::Boolean | activate_configuration_set (const char *config_id) throw (InvalidParameter, NotAvailable, InternalError) |
[CORBA interface] Activate ConfigurationSet | |
Configuration_ptr | getObjRef () |
const DeviceProfile | getDeviceProfile () |
const ServiceProfileList | getServiceProfiles () |
const ServiceProfile | getServiceProfile (const char *id) |
const OrganizationList | getOrganizations () |
Protected Types | |
typedef ACE_Guard< ACE_Thread_Mutex > | Guard |
Protected Member Functions | |
const std::string | getUUID () const |
Protected Attributes | |
Configuration_var | m_objref |
DeviceProfile | m_deviceProfile |
SDO DeviceProfile with mutex lock. | |
ACE_Thread_Mutex | m_dprofile_mutex |
ServiceProfileList | m_serviceProfiles |
SDO ServiceProfileList. | |
ACE_Thread_Mutex | m_sprofile_mutex |
ParameterList | m_parameters |
SDO ParameterList. | |
ACE_Thread_Mutex | m_params_mutex |
RTC::ConfigAdmin & | m_configsets |
SDO ConfigurationSetList. | |
ACE_Thread_Mutex | m_config_mutex |
OrganizationList | m_organizations |
SDO OrganizationList. | |
ACE_Thread_Mutex | m_org_mutex |
Classes | |
struct | config_id |
struct | nv_name |
Active ConfigurationSet id. More... | |
struct | org_id |
struct | service_id |
Configuration interface provides operations to add or remove data specified in resource data model. These operations provide functions to change DeviceProfile, ServiceProfile, ConfigurationProfile, and Organization. This specification does not address access control or security aspects. Access to operations that modifies or removes profiles should be controlled depending upon the application.
Different configurations can be stored for simple and quick activation. Different predefined configurations are stored as different ConfigurationSets or configuration profile. A ConfigurationSet stores the value of all properties assigned for the particular configuration along with its unique id and description to identify and describe the configuration respectively. Operations in the configuration interface help manage these ConfigurationSets.
|
|
|
|
|
|
|
[CORBA interface] Activate ConfigurationSet This operation activates one of the stored ConfigurationSets in the ConfigurationProfile. This operation activates the specified stored ConfigurationSets. This means that the configuration properties of the SDO are changed as the values of these properties specified in the stored ConfigurationSet. In other words, values of the specified ConfigurationSet are now copied to the active configuration.
|
|
[CORBA interface] Add ConfigurationSet This operation adds a ConfigurationSet to the ConfigurationProfile.
|
|
[CORBA interface] Add Organization This operation adds reference of an Organization object.
|
|
[CORBA interface] Get active ConfigurationSet This operation returns the current active ConfigurationSet of an SDO (i.e., if the current configuration of the SDO was set using predefined configuration set). ConfigurationSet cannot be considered active if the:
Empty ConfigurationSet is returned in these cases.
|
|
[CORBA interface] Getting value of configuration parameter This operation returns a value of parameter that is specified by argument "name."
|
|
[CORBA interface] Getting value list of configuration parameter This operation returns all configuration parameters and their values.
|
|
[CORBA interface] Getting a list of configuration parameter This operation returns a list of Parameters. An empty list is returned if the SDO does not have any configurable parameter.
|
|
[CORBA interface] Getting a ConfigurationSet This operation returns the ConfigurationSet specified by the parameter configurationSetID.
|
|
[CORBA interface] Getting list of ConfigurationSet This operation returns a list of ConfigurationSets that the ConfigurationProfile has. An empty list is returned if the SDO does not have any ConfigurationSets. This operation returns a list of all ConfigurationSets of the SDO. If no predefined ConfigurationSets exist, then empty list is returned.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[CORBA interface] Remove ConfigurationSet This operation removes a ConfigurationSet from the ConfigurationProfile.
|
|
[CORBA interface] Remove the reference of Organization This operation removes the reference of an Organization object.
|
|
[CORBA interface] Remove ServiceProfile This operation removes ServiceProfile object to the SDO that has this Configuration interface. The ServiceProfile object to be removed is specified by argument.
|
|
[CORBA interface] Modify the parameter value This operation sets a parameter to a value that is specified by argument "value." The parameter to be modified is specified by argument " name."
|
|
[CORBA interface] Set ConfigurationSet This operation modifies the specified ConfigurationSet of an SDO. ※ パラメータの数が spec と IDL で異なる!!!
|
|
[CORBA interface] Set DeviceProfile of SDO This operation sets the DeviceProfile of an SDO. If the SDO does not have DeviceProfile, the operation will create a new DeviceProfile, otherwise it will replace the existing DeviceProfile.
|
|
[CORBA interface] Set SDO's ServiceProfile This operation adds ServiceProfile to the target SDO that navigates this Configuration interface. If the id in argument ServiceProfile is null, new id is created and the ServiceProfile is stored. If the id is not null, the target SDO searches for ServiceProfile in it with the same id. It adds the ServiceProfile if not exist, or overwrites if exist.
|
|
|
|
SDO ConfigurationSetList.
|
|
SDO DeviceProfile with mutex lock.
|
|
|
|
|
|
|
|
SDO OrganizationList.
|
|
SDO ParameterList.
|
|
|
|
SDO ServiceProfileList.
|
|
|