jp.go.aist.rtm.RTC.SDOPackage
Class Configuration_impl

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by _SDOPackage.ConfigurationPOA
          extended by jp.go.aist.rtm.RTC.SDOPackage.Configuration_impl
All Implemented Interfaces:
ConfigurationOperations, org.omg.CORBA.portable.InvokeHandler

public class Configuration_impl
extends ConfigurationPOA


Field Summary
protected  java.util.Map<java.lang.String,Properties> m_configsetopts
           
protected  ConfigAdmin m_configsets
           Information of configuration set
protected  DeviceProfile m_deviceProfile
           DeviceProfile
protected  Configuration m_objref
           Object reference
protected  OrganizationListHolder m_organizations
           List of Organization
protected  ParameterListHolder m_parameters
           List of Parameter
protected  ServiceProfileListHolder m_serviceProfiles
           List of ServiceProfile
protected  Logbuf rtcout
           Ojbect format for Logging
 
Constructor Summary
Configuration_impl(ConfigAdmin configsets)
           Constructor
 
Method Summary
 Configuration _this()
           Gets the object reference.
 boolean activate_configuration_set(java.lang.String config_id)
           [CORBA interface] Activate ConfigurationSet
 boolean add_configuration_set(ConfigurationSet configuration_set)
           [CORBA interface] Adds ConfigurationSet.
 boolean add_organization(Organization org)
           [CORBA interface] Adds Organization object.
 boolean add_service_profile(ServiceProfile sProfile)
           [CORBA interface] Sets ServiceProfile of SDO.
 ConfigurationSet get_active_configuration_set()
           [CROBA ingerface] Gets active ConfigurationSet.
 org.omg.CORBA.Any get_configuration_parameter_value(java.lang.String name)
           [CORBA interface] Gets the value of Configuration parameter
 NameValue[] get_configuration_parameter_values()
           [CORBA itnerface] Gets the list of Configuration paramter value
 Parameter[] get_configuration_parameters()
           [CORBA interface] Gets the list of configuration parameter
 ConfigurationSet get_configuration_set(java.lang.String config_id)
          [CORBA interface] ConfigurationSet を取得します。
このオペレーションは引数で指定された ConfigurationSet の ID に関連 付けられた ConfigurationSet を返します。
 ConfigurationSet[] get_configuration_sets()
           [CORBA interface] Gets the list of ConfigurationSet
 DeviceProfile getDeviceProfile()
           [CORBA interface] Gets DeviceProfie of SDO
 Configuration getObjRef()
           Gets the object reference
 OrganizationListHolder getOrganizations()
           [CORBA interface] Gets all Organization set
 ServiceProfile getServiceProfile(java.lang.String id)
           [CORBA itnerface] Gets SeviceProfile of SDO
 ServiceProfileListHolder getServiceProfiles()
           [CORBA interface] Gets all DeviceProfiles of SDO
 boolean remove_configuration_set(java.lang.String config_id)
           [CROBA interface] Deletes ConfigurationSet
 boolean remove_organization(java.lang.String organization_id)
           [CORBA interface] Deletes Organization object reference
 boolean remove_service_profile(java.lang.String id)
           [CORBA interface] Deletes ServiceProfile
 boolean set_configuration_parameter(java.lang.String name, org.omg.CORBA.Any value)
           [CORBA interface] Changes the Configuration parameter.
 boolean set_configuration_set_values(ConfigurationSet configuration_set)
           [CORBA interface] Set ConfigurationSet
 boolean set_device_profile(DeviceProfile dProfile)
           [CORBA interface] Sets DeviceProfile of SDO.
 
Methods inherited from class _SDOPackage.ConfigurationPOA
_all_interfaces, _invoke, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_objref

protected Configuration m_objref
Object reference


m_deviceProfile

protected DeviceProfile m_deviceProfile
DeviceProfile


m_serviceProfiles

protected ServiceProfileListHolder m_serviceProfiles
List of ServiceProfile


m_parameters

protected ParameterListHolder m_parameters
List of Parameter


m_configsets

protected ConfigAdmin m_configsets
Information of configuration set


m_configsetopts

protected java.util.Map<java.lang.String,Properties> m_configsetopts

m_organizations

protected OrganizationListHolder m_organizations
List of Organization


rtcout

protected Logbuf rtcout
Ojbect format for Logging

Constructor Detail

Configuration_impl

public Configuration_impl(ConfigAdmin configsets)
Constructor

Parameters:
configsets - information of Configuration
Method Detail

_this

public Configuration _this()
Gets the object reference.

Overrides:
_this in class ConfigurationPOA
Returns:
object reference

set_device_profile

public boolean set_device_profile(DeviceProfile dProfile)
                           throws InvalidParameter,
                                  NotAvailable,
                                  InternalError
[CORBA interface] Sets DeviceProfile of SDO.

Parameters:
dProfile - DeviceProfile
Returns:
True is returned when succeeding.
Throws:
NotAvailable - There is no response though SDO exists.
InvalidParameter - i Argument dProfile is null.
InternalError - An internal error occurred.

add_service_profile

public boolean add_service_profile(ServiceProfile sProfile)
                            throws InvalidParameter,
                                   NotAvailable,
                                   InternalError
[CORBA interface] Sets ServiceProfile of SDO.

Sets ServiceProfile of SDO that keeps Configuraition interface

Parameters:
sProfile - ServiceProfile
Returns:
True is returned when succeeding.
Throws:
InvalidParameter - Argument sProfile is null.
NotAvailable - There is no response though SDO exists.
InternalError - An internal error occurred.

add_organization

public boolean add_organization(Organization org)
                         throws InvalidParameter,
                                NotAvailable,
                                InternalError
[CORBA interface] Adds Organization object.

Parameters:
org - Organization
Returns:
True is returned when succeeding.
Throws:
NotAvailable - There is no response though SDO existis.
InvalidParameter - Argument organization is null.
InternalError - An internal error occureed.

remove_service_profile

public boolean remove_service_profile(java.lang.String id)
                               throws InvalidParameter,
                                      NotAvailable,
                                      InternalError
[CORBA interface] Deletes ServiceProfile

Parameters:
id - serviceID of ServiceProfile
Returns:
True is retuened when succeeding
Throws:
InvalidParameter - Argument "id" is null. ServiceProfile related to "id" does not exist.
NotAvailable - There is no response though SDO exists.
InternalError - An internal error occurred.

remove_organization

public boolean remove_organization(java.lang.String organization_id)
                            throws InvalidParameter,
                                   NotAvailable,
                                   InternalError
[CORBA interface] Deletes Organization object reference

Parameters:
organization_id - Unique ID of Orgnazaion
Returns:
True is returned when succeeding
Throws:
InvalidParameter - Argument "id" is null. Organization to related to "id" dose not exist
NotAvailable - There is no response thorug SDO exists
InternalError - An internal erro occurred

get_configuration_parameters

public Parameter[] get_configuration_parameters()
                                         throws NotAvailable,
                                                InternalError
[CORBA interface] Gets the list of configuration parameter

Returns:
list of configuration parameter
Throws:
NotAvailable - There is no response though SDO exists
InternalError - An internal error occurred

get_configuration_parameter_values

public NameValue[] get_configuration_parameter_values()
                                               throws NotAvailable,
                                                      InternalError
[CORBA itnerface] Gets the list of Configuration paramter value

Returns configuration paramter and value

Returns:
All configuration parameters and lists of value.
Throws:
NotAvailable - There is no response though SDO exists
InternalError - An internal error occurred

get_configuration_parameter_value

public org.omg.CORBA.Any get_configuration_parameter_value(java.lang.String name)
                                                    throws InvalidParameter,
                                                           NotAvailable,
                                                           InternalError
[CORBA interface] Gets the value of Configuration parameter

This operation returns the argument value specified by "Name".

Parameters:
name - Name of paramter that demands value.
Returns:
Value of specified parameter
Throws:
InvalidParameter - Argument "name" is null.
NotAvailable - There is no response though SDO exists.
InternalError - An internal error occurred

set_configuration_parameter

public boolean set_configuration_parameter(java.lang.String name,
                                           org.omg.CORBA.Any value)
                                    throws InvalidParameter,
                                           NotAvailable,
                                           InternalError
[CORBA interface] Changes the Configuration parameter.

Parameters:
name -
value -
Returns:
Throws:
InvalidParameter
NotAvailable
InternalError

get_configuration_sets

public ConfigurationSet[] get_configuration_sets()
                                          throws NotAvailable,
                                                 InternalError
[CORBA interface] Gets the list of ConfigurationSet

Returns:
Present value of list of ConfigurationSet.
Throws:
NotAvailable - SDOは存在するが応答がない。
InternalError - 内部的エラーが発生した。

get_configuration_set

public ConfigurationSet get_configuration_set(java.lang.String config_id)
                                       throws NotAvailable,
                                              InternalError

[CORBA interface] ConfigurationSet を取得します。
このオペレーションは引数で指定された ConfigurationSet の ID に関連 付けられた ConfigurationSet を返します。

Parameters:
config_id - ConfigurationSet の識別子。
Returns:
引数により指定された ConfigurationSet。
Throws:
NotAvailable - SDOは存在するが応答がない。
InternalError - 内部的エラーが発生した。

set_configuration_set_values

public boolean set_configuration_set_values(ConfigurationSet configuration_set)
                                     throws InvalidParameter,
                                            NotAvailable,
                                            InternalError
[CORBA interface] Set ConfigurationSet

This operation modifies the specified ConfigurationSet of an SDO. Note: The number of parameters differs between spec and IDL!!

Parameters:
configuration_set - configuration_set ConfigurationSet to be replaced.
Returns:
A flag indicating if the ConfigurationSet was modified successfully. "true" - The ConfigurationSet was modified successfully. "false" - The ConfigurationSet could not be modified successfully.
Throws:
InvalidParameter - The parameter 'configurationSetID' is null or there is no ConfigurationSet stored with such id. This exception is also raised if one of the attributes defining ConfigurationSet is not valid.
SDONotExists - The target SDO does not exist.(This exception is mapped to CORBA standard system exception OBJECT_NOT_EXIST.)
NotAvailable - The target SDO is reachable but cannot respond.
InternalError - The target SDO cannot execute the operation completely due to some internal error.

get_active_configuration_set

public ConfigurationSet get_active_configuration_set()
                                              throws NotAvailable,
                                                     InternalError
[CROBA ingerface] Gets active ConfigurationSet.

In the following cases, it is considered that ConfigurationSet is not active.

  1. It is not set by ConfigurationSet in which a present setting is defined beforehand.
  2. After the setting of SDO had become active, it was changed.
  3. ConfigurationSet that set SDO was changed.
Empty ConfigurationSet is returned.

Returns:
Active ConfigurationSset
Throws:
NotAvailable - There is no response though SDO exists.
InternalError - An internal error occurred

add_configuration_set

public boolean add_configuration_set(ConfigurationSet configuration_set)
                              throws InvalidParameter,
                                     NotAvailable,
                                     InternalError
[CORBA interface] Adds ConfigurationSet.

Adds ConfigurationSet to ConfigurationProfile.

Parameters:
configuration_set - ConfgurataionSet
Returns:
True is returned when succeeding.
Throws:
InvalidParameter - Argument "configurations_set" is null. ConfigurationSet specified by the argument dose not exist
NotAvailable - There is no rsponse though SDO exists
InternalError - An internal error occurred

remove_configuration_set

public boolean remove_configuration_set(java.lang.String config_id)
                                 throws InvalidParameter,
                                        NotAvailable,
                                        InternalError
[CROBA interface] Deletes ConfigurationSet

Parameters:
config_id - "id" of ConfigurationSet
Returns:
True is returned when succeeding.
Throws:
InvalidParameter - Argument "configurationSetID" is null. ConfigurationSet specified by the argument doesn't exist.
NotAvailable - There is no response though SDO exists
InternalError - An internal error occurred

activate_configuration_set

public boolean activate_configuration_set(java.lang.String config_id)
                                   throws InvalidParameter,
                                          NotAvailable,
                                          InternalError
[CORBA interface] Activate ConfigurationSet

the configuration property of SDO is changed to the value of the value of the property that is set by ConfigurationSet.

Parameters:
config_id - "id" of ConfigurationSet
Returns:
True is returned when succeeding.
Throws:
InvalidParameter - Argument "config_id" is nill. ConfigurationSet specified by the argument doesn't exist.
NotAvailable - There is no response though SDO exists
InternalError - An internal error occurred

getObjRef

public Configuration getObjRef()
Gets the object reference

Returns:
Ojbect reference

getDeviceProfile

public final DeviceProfile getDeviceProfile()
[CORBA interface] Gets DeviceProfie of SDO

Returns:
DeviceProfile of SDO

getServiceProfiles

public final ServiceProfileListHolder getServiceProfiles()
[CORBA interface] Gets all DeviceProfiles of SDO

Returns:
DeviceProfile of SDO

getServiceProfile

public final ServiceProfile getServiceProfile(java.lang.String id)
[CORBA itnerface] Gets SeviceProfile of SDO

When SeiviceProfile specified by ID dose not exist, Empty ServicePorfile is returned

Parameters:
id - "id" of ServiceProfile
Returns:
ServiceProfile of SDO

getOrganizations

public final OrganizationListHolder getOrganizations()
[CORBA interface] Gets all Organization set

Returns:
List of Organization