|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.omg.PortableServer.Servant
RTC.PortServicePOA
jp.go.aist.rtm.RTC.port.PortBase
jp.go.aist.rtm.RTC.port.CorbaPort
public class CorbaPort
CORBAを通信手段とするPortクラスです。
入れ子のクラスの概要 |
---|
クラス jp.go.aist.rtm.RTC.port.PortBase から継承された入れ子のクラス/インタフェース |
---|
PortBase.connect_func, PortBase.disconnect_all_func, PortBase.disconnect_func, PortBase.find_conn_id, PortBase.find_interface, PortBase.find_port_ref |
フィールドの概要 | |
---|---|
(package private) java.util.Vector<jp.go.aist.rtm.RTC.port.CorbaPort.CorbaConsumerHolder> |
m_consumers
|
protected Properties |
m_properties
Properties |
(package private) java.util.Vector<jp.go.aist.rtm.RTC.port.CorbaPort.CorbaProviderHolder> |
m_providers
vector to stored Providers' information |
protected Logbuf |
rtcout
Logging用フォーマットオブジェクト |
クラス jp.go.aist.rtm.RTC.port.PortBase から継承されたフィールド |
---|
m_connectionLimit, m_connectorsMutex, m_objref, m_onConnected, m_onConnectionLost, m_onDisconnected, m_onPublishInterfaces, m_onSubscribeInterfaces, m_onUnsubscribeInterfaces, m_ownerInstanceName, m_profile, m_profile_mutex |
コンストラクタの概要 | |
---|---|
CorbaPort(java.lang.String name)
コンストラクタです。 |
メソッドの概要 | |
---|---|
void |
activateInterfaces()
Activate all Port interfaces |
void |
deactivateInterfaces()
Deactivate all Port interfaces |
void |
init(Properties prop)
Initializing properties |
protected ReturnCode_t |
publishInterfaces(ConnectorProfileHolder connector_profile)
Publish information about interfaces |
boolean |
registerConsumer(java.lang.String instance_name,
java.lang.String type_name,
CorbaConsumerBase consumer)
|
boolean |
registerProvider(java.lang.String instance_name,
java.lang.String type_name,
org.omg.PortableServer.Servant provider)
brief Register the provider |
protected ReturnCode_t |
subscribeInterfaces(ConnectorProfileHolder connector_profile)
Subscribe to interface |
protected void |
unsubscribeInterfaces(ConnectorProfile connector_profile)
Unsubscribe interfaces |
クラス RTC.PortServicePOA から継承されたメソッド |
---|
_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 から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
java.util.Vector<jp.go.aist.rtm.RTC.port.CorbaPort.CorbaProviderHolder> m_providers
java.util.Vector<jp.go.aist.rtm.RTC.port.CorbaPort.CorbaConsumerHolder> m_consumers
protected Logbuf rtcout
Logging用フォーマットオブジェクト
protected Properties m_properties
Properties
コンストラクタの詳細 |
---|
public CorbaPort(java.lang.String name)
コンストラクタです。
name
- Port名称メソッドの詳細 |
---|
public void init(Properties prop)
Initializing properties
This operation initializes outport's properties. If a property "connection_limit" is set and appropriate value is set to this property value, the number of maximum connection is set as this value. If the property does not exist or invalid value is set to this property, the maximum number of connection will be set unlimited.
prop
- properties of the CorbaPortpublic boolean registerProvider(java.lang.String instance_name, java.lang.String type_name, org.omg.PortableServer.Servant provider) throws org.omg.PortableServer.POAPackage.ServantAlreadyActive, org.omg.PortableServer.POAPackage.WrongPolicy, org.omg.PortableServer.POAPackage.ObjectNotActive
This operation registers a servant, which is provided in this Port, to the Port. The servant is associated with "instance_name" and "type_name" as the instance name of the servant and as the type name of the servant. A given servant will be stored in the CorbaPort, and this is registered as RTC::PROVIDED interface into the PortInterfaceProfile.
instance_name
-
Instance name of servanttype_name
-
Type name of the servantprovider
-
CORBA servant
org.omg.PortableServer.POAPackage.ServantAlreadyActive
org.omg.PortableServer.POAPackage.WrongPolicy
org.omg.PortableServer.POAPackage.ObjectNotActive
public boolean registerConsumer(java.lang.String instance_name, java.lang.String type_name, CorbaConsumerBase consumer)
public void activateInterfaces()
This operation activate all interfaces that is registered in the ports.
PortBase
内の activateInterfaces
public void deactivateInterfaces()
This operation deactivate all interfaces that is registered in the ports.
PortBase
内の deactivateInterfaces
protected ReturnCode_t publishInterfaces(ConnectorProfileHolder connector_profile)
This operation publishes Provider interfaces information, which is owned by this port, to the other Ports via ConnectorProfile::properties. Now it is assumed RTC instance name and other information is as follows,
PortBase
内の publishInterfaces
connector_profile
-
Connector profile
protected ReturnCode_t subscribeInterfaces(ConnectorProfileHolder connector_profile)
Retrieve information associated with Provider matches Consumer owned by this port and set the object reference to Consumer. Now, Consumer is registered as the following:
PortInterfaceProfile { instance_name = "PA10_0"; type_name = "Manipulator"; polarity = REQUIRED; }Find the object reference of Serivce Provider that is registered as the following of other ports:
PortInterfaceProfile { instance_name = "PA10_0"; type_name = "Manipulator"; polarity = PROVIDED; }and set to Consumer. In fact, find NameValue that is registered as the following to ConnectorProfile::properties:
NameValue = { "port.Manipulator.PA10_0":and set the object reference to Consumer.
PortBase
内の subscribeInterfaces
connector_profile
-
Connector profile
protected void unsubscribeInterfaces(ConnectorProfile connector_profile)
Release all Objects that was set in Consumer associated with the given ConnectorProfile.
PortBase
内の unsubscribeInterfaces
connector_profile
-
Connector profile
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |