|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.omg.PortableServer.Servant
_SDOPackage.ConfigurationPOA
jp.go.aist.rtm.RTC.SDOPackage.Configuration_impl
public class Configuration_impl
SDO Configuration 実装クラス
Configuration interface は Resource Data Model で定義されたデータの
追加、削除等の操作を行うためのインターフェースです。
DeviceProfile, ServiceProfile, ConfigurationProfile および Organization
の変更を行うためのオペレーションを備えています。SDO の仕様ではアクセス制御
およびセキュリティに関する詳細については規定していません。
複数の設定 (Configuration) を保持することにより、容易かつ素早くある設定
を反映させることができます。事前に定義された複数の設定を ConfigurationSets
および configuration profile として保持することができます。ひとつの
ConfigurationSet は特定の設定に関連付けられた全プロパティ値のリストを、
ユニークID、詳細とともに持っています。これにより、各設定項目の詳細を記述し
区別することができます。Configuration interface のオペレーションはこれら
ConfiguratioinSets の管理を支援します。
以下、SDO仕様に明記されていないもしくは解釈がわからないため独自解釈
以下の関数は ParameterList に対して処理を行います。
以下の関数はアクティブなConfigurationSetに対する処理を行います
以下の関数はConfigurationSetListに対して処理を行います。
コンストラクタの概要 | |
---|---|
Configuration_impl(ConfigAdmin configsets)
コンストラクタです。 |
メソッドの概要 | |
---|---|
Configuration |
_this()
オブジェクト・リファレンスを取得します。 |
boolean |
activate_configuration_set(java.lang.String config_id)
[CORBA interface] ConfigurationSet をアクティブ化します。 |
boolean |
add_configuration_set(ConfigurationSet configuration_set)
[CORBA interface] ConfigurationSet を追加します。 |
boolean |
add_organization(Organization org)
[CORBA interface] Organization を追加します。 |
ConfigurationSet |
get_active_configuration_set()
[CORBA interface] アクティブな ConfigurationSet を取得します。 |
org.omg.CORBA.Any |
get_configuration_parameter_value(java.lang.String name)
[CORBA interface] Configuration parameter の値を取得します。 |
NameValue[] |
get_configuration_parameter_values()
[CORBA interface] Configuration parameter の値のリストを取得します。 |
Parameter[] |
get_configuration_parameters()
[CORBA interface] 設定パラメータのリストを取得します。 |
ConfigurationSet |
get_configuration_set(java.lang.String config_id)
[CORBA interface] ConfigurationSet を取得します。 |
ConfigurationSet[] |
get_configuration_sets()
[CORBA interface] ConfigurationSet リストを取得します。 |
DeviceProfile |
getDeviceProfile()
[CORBA interface] SDO の DeviceProfile を取得します。 |
Configuration |
getObjRef()
オブジェクト参照を取得します。 |
OrganizationListHolder |
getOrganizations()
[CORBA interface] 設定された全Organizationを取得します。 |
ServiceProfile |
getServiceProfile(java.lang.String id)
[CORBA interface] SDO の ServiceProfile を取得します。 |
ServiceProfileListHolder |
getServiceProfiles()
[CORBA interface] SDO の 全DeviceProfile を取得します。 |
boolean |
remove_configuration_set(java.lang.String config_id)
[CORBA interface] ConfigurationSet を削除します。 |
boolean |
remove_organization(java.lang.String organization_id)
[CORBA interface] Organization の参照を削除します。 |
boolean |
remove_service_profile(java.lang.String id)
[CORBA interface] ServiceProfile を削除します。 |
boolean |
set_configuration_parameter(java.lang.String name,
org.omg.CORBA.Any value)
[CORBA interface] Configuration パラメータを変更します。 |
boolean |
set_configuration_set_values(java.lang.String config_id,
ConfigurationSet configuration_set)
[CORBA interface] ConfigurationSet を設定します。 |
boolean |
set_device_profile(DeviceProfile dProfile)
[CORBA interface] SDO の DeviceProfile をセットします。 |
boolean |
set_service_profile(ServiceProfile sProfile)
[CORBA interface] SDO の ServiceProfile を設定します。 |
クラス _SDOPackage.ConfigurationPOA から継承されたメソッド |
---|
_all_interfaces, _invoke, _this |
クラス 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 |
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public Configuration_impl(ConfigAdmin configsets)
コンストラクタです。
configsets
- コンフィギュレーション情報メソッドの詳細 |
---|
public Configuration _this()
オブジェクト・リファレンスを取得します。
ConfigurationPOA
内の _this
public boolean set_device_profile(DeviceProfile dProfile) throws InvalidParameter, NotAvailable, InternalError
[CORBA interface] SDO の DeviceProfile をセットします。
このオペレーションは SDO の DeviceProfile をセットします。SDO が
DeviceProfile を保持している場合は新たな DeviceProfile を生成し、
DeviceProfile をすでに保持している場合は既存のものと置き換えます。
dProfile
- SDO に関連付けられる DeviceProfile。
NotAvailable
- SDOは存在するが応答がない。
InvalidParameter
- 引数 "dProfile" が null である。
InternalError
- 内部的エラーが発生した。public boolean set_service_profile(ServiceProfile sProfile) throws InvalidParameter, NotAvailable, InternalError
[CORBA interface] SDO の ServiceProfile を設定します。
このオペレーションはこの Configuration interface を所有する対象 SDO の
ServiceProfile を設定します。もし引数の ServiceProfile の id が空であれば
新しい ID が生成されその ServiceProfile を格納します。もし id が空で
なければ、SDO は同じ id を持つ ServiceProfile を検索します。
同じ id が存在しなければこの ServiceProfile を追加し、id が存在すれば
上書きをします。
sProfile
- 追加する ServiceProfile
InvalidParameter
- 引数 "sProfile" が nullである。
NotAvailable
- SDOは存在するが応答がない。
InternalError
- 内部的エラーが発生した。public boolean add_organization(Organization org) throws InvalidParameter, NotAvailable, InternalError
[CORBA interface] Organization を追加します。
このオペレーションは Organization object のリファレンスを追加します。
org
- 追加する Organization
NotAvailable
- SDOは存在するが応答がない。
InvalidParameter
- 引数 "organization" が null である。
InternalError
- 内部的エラーが発生した。public boolean remove_service_profile(java.lang.String id) throws InvalidParameter, NotAvailable, InternalError
[CORBA interface] ServiceProfile を削除します。
このオペレーションはこの Configuration interface を持つ SDO の
Service の ServiceProfile を削除します。
削除する ServiceProfileは引数により指定されます。
id
- 削除する ServcieProfile の serviceID。
InvalidParameter
- 引数 "id" が null である。もしくは "id" に
関連付けられた ServiceProfile が存在しない。
NotAvailable
- SDOは存在するが応答がない。
InternalError
- 内部的エラーが発生した。public boolean remove_organization(java.lang.String organization_id) throws InvalidParameter, NotAvailable, InternalError
[CORBA interface] Organization の参照を削除します。
このオペレーションは Organization の参照を削除します。
organization_id
- 削除する Organization の一意な id。
InvalidParameter
- 引数 "id" が null である。もしくは "id" に
関連付けられた Organization が存在しない。
NotAvailable
- SDOは存在するが応答がない。
InternalError
- 内部的エラーが発生した。public Parameter[] get_configuration_parameters() throws NotAvailable, InternalError
[CORBA interface] 設定パラメータのリストを取得します。
このオペレーションは configuration parameter のリストを返します。
SDO が設定可能なパラメータを持たなければ空のリストを返します。
NotAvailable
- SDOは存在するが応答がない。
InternalError
- 内部的エラーが発生した。public NameValue[] get_configuration_parameter_values() throws NotAvailable, InternalError
[CORBA interface] Configuration parameter の値のリストを取得します。
このオペレーションは configuration パラメータおよび値を返します。
※未実装
NotAvailable
- SDOは存在するが応答がない。
InternalError
- 内部的エラーが発生した。public org.omg.CORBA.Any get_configuration_parameter_value(java.lang.String name) throws InvalidParameter, NotAvailable, InternalError
[CORBA interface] Configuration parameter の値を取得します。
このオペレーションは引数 "name" で指定されたパラメータ値を返します。
※未実装
name
- 値を要求するパラメータの名前。
InvalidParameter
- 引数 "name" が null である。
NotAvailable
- SDOは存在するが応答がない。
InternalError
- 内部的エラーが発生した。public boolean set_configuration_parameter(java.lang.String name, org.omg.CORBA.Any value) throws InvalidParameter, NotAvailable, InternalError
[CORBA interface] Configuration パラメータを変更します。
このオペレーションは "name" で指定したパラメータの値を "value" に変更します。
※未実装
name
- 変更したいパラメータの名前。value
- 変更したいパラメータの値。
InvalidParameter
- 引数 "name" が null である。
NotAvailable
- SDOは存在するが応答がない。
InternalError
- 内部的エラーが発生した。public ConfigurationSet[] get_configuration_sets() throws NotAvailable, InternalError
[CORBA interface] ConfigurationSet リストを取得します。
このオペレーションは ConfigurationProfile が持つ ConfigurationSet の
リストを返します。 SDO が ConfigurationSet を持たなければ空のリストを返します。
NotAvailable
- SDOは存在するが応答がない。
InternalError
- 内部的エラーが発生した。public ConfigurationSet get_configuration_set(java.lang.String config_id) throws NotAvailable, InternalError
[CORBA interface] ConfigurationSet を取得します。
このオペレーションは引数で指定された ConfigurationSet の ID に関連
付けられた ConfigurationSet を返します。
config_id
- ConfigurationSet の識別子。
NotAvailable
- SDOは存在するが応答がない。
InternalError
- 内部的エラーが発生した。public boolean set_configuration_set_values(java.lang.String config_id, ConfigurationSet configuration_set) throws InvalidParameter, NotAvailable, InternalError
[CORBA interface] ConfigurationSet を設定します。
このオペレーションは指定された id の ConfigurationSet を更新します。
configu_id
- 変更する ConfigurationSet の ID。configuration_set
- 変更する ConfigurationSet そのもの。
InvalidParameter
- config_id が null か ConfigurationSet
NotAvailable
- SDOは存在するが応答がない。
InternalError
- 内部的エラーが発生した。public ConfigurationSet get_active_configuration_set() throws NotAvailable, InternalError
[CORBA interface] アクティブな ConfigurationSet を取得します。
このオペレーションは当該SDOの現在アクティブな ConfigurationSet を返します。
(もしSDOの現在の設定が予め定義された ConfigurationSet により設定されて
いるならば。)
ConfigurationSet は以下の場合にはアクティブではないものとみなされます。
NotAvailable
- SDOは存在するが応答がない。
InternalError
- 内部的エラーが発生した。public boolean add_configuration_set(ConfigurationSet configuration_set) throws InvalidParameter, NotAvailable, InternalError
[CORBA interface] ConfigurationSet を追加します。
ConfigurationProfile に ConfigurationSet を追加するオペレーション。
configuration_set
- 追加される ConfigurationSet。
InvalidParameter
- 引数 "configuration_set" が null である、
もしくは、引数で指定された ConfigurationSet が存在しない。
NotAvailable
- SDOは存在するが応答がない。
InternalError
- 内部的エラーが発生した。public boolean remove_configuration_set(java.lang.String config_id) throws InvalidParameter, NotAvailable, InternalError
[CORBA interface] ConfigurationSet を削除します。
ConfigurationProfile から ConfigurationSet を削除します。
configu_id
- 削除する ConfigurationSet の id。
InvalidParameter
- 引数 "configurationSetID" が null である、
もしくは、引数で指定された ConfigurationSet が存在しない。
NotAvailable
- SDOは存在するが応答がない。
InternalError
- 内部的エラーが発生した。public boolean activate_configuration_set(java.lang.String config_id) throws InvalidParameter, NotAvailable, InternalError
[CORBA interface] ConfigurationSet をアクティブ化します。
ConfigurationProfile に格納された ConfigurationSet のうち一つを
アクティブにします。
このオペレーションは特定の ConfigurationSet をアクティブにします。
すなわち、SDO のコンフィギュレーション・プロパティがその格納されている
ConfigurationSet により設定されるプロパティの値に変更されます。
指定された ConfigurationSet の値がアクティブ・コンフィギュレーション
にコピーされるということを意味します。
config_id
- アクティブ化する ConfigurationSet の id。
InvalidParameter
- 引数 "config_id" が null である、もしくは
引数で指定された ConfigurationSet が存在しない。
NotAvailable
- SDOは存在するが応答がない。
InternalError
- 内部的エラーが発生した。public Configuration getObjRef()
オブジェクト参照を取得します。
public final DeviceProfile getDeviceProfile()
[CORBA interface] SDO の DeviceProfile を取得します。
public final ServiceProfileListHolder getServiceProfiles()
[CORBA interface] SDO の 全DeviceProfile を取得します。
public final ServiceProfile getServiceProfile(java.lang.String id)
[CORBA interface] SDO の ServiceProfile を取得します。 指定したIDのServiceProfileが存在しない場合は,空のServiceProfileを返します。
id
- 取得対象 ServiceProfile の id
public final OrganizationListHolder getOrganizations()
[CORBA interface] 設定された全Organizationを取得します。
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |