|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.omg.PortableServer.Servant
RTC.PortServicePOA
jp.go.aist.rtm.RTC.port.PortBase
jp.go.aist.rtm.RTC.port.OutPortBase
public class OutPortBase
出力ポートのベース実装クラスです。 Publisherの登録やPublisherへのデータ更新通知などの実装を提供します。
入れ子のクラスの概要 | |
---|---|
protected class |
OutPortBase.Publisher
|
クラス 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 |
フィールドの概要 | |
---|---|
protected java.util.Vector<OutPortConnector> |
m_connectors
|
protected java.util.Vector<InPortConsumer> |
m_consumers
|
protected java.util.Vector<java.lang.String> |
m_consumerTypes
|
protected java.lang.String |
m_name
ポート名です。 |
protected Properties |
m_properties
|
protected java.util.Vector<OutPortProvider> |
m_providers
|
protected java.util.Vector<java.lang.String> |
m_providerTypes
|
protected java.util.List<OutPortBase.Publisher> |
m_publishers
|
クラス jp.go.aist.rtm.RTC.port.PortBase から継承されたフィールド |
---|
m_objref, m_onConnected, m_onConnectionLost, m_onDisconnected, m_onPublishInterfaces, m_onSubscribeInterfaces, m_onUnsubscribeInterfaces, m_profile, m_profile_mutex, rtcout |
コンストラクタの概要 | |
---|---|
OutPortBase(java.lang.String name,
java.lang.String data_type)
コンストラクタです。 |
メソッドの概要 | |
---|---|
void |
activateInterfaces()
Activate all Port interfaces This operation activate all interfaces that is registered in the ports. |
protected void |
configure()
Configureing outport This operation configures the outport based on the properties. |
java.util.Vector<OutPortConnector> |
connectors()
Connector list This operation returns connector list |
protected OutPortConnector |
createConnector(ConnectorProfileHolder cprof,
Properties prop,
InPortConsumer consumer)
OutPortPushConnector creation |
protected OutPortConnector |
createConnector(ConnectorProfileHolder cprof,
Properties prop,
OutPortProvider provider)
OutPortPullConnector creation |
protected InPortConsumer |
createConsumer(ConnectorProfileHolder cprof,
Properties prop)
InPort consumer creation |
protected OutPortProvider |
createProvider(ConnectorProfileHolder cprof,
Properties prop)
OutPort provider creation |
void |
deactivateInterfaces()
Deactivate all Port interfaces This operation deactivate all interfaces that is registered in the ports. |
java.util.Vector<java.lang.String> |
getConnectorIds()
ConnectorId list This operation returns ConnectorId list |
java.util.Vector<java.lang.String> |
getConnectorNames()
Connector name list This operation returns Connector name list |
boolean |
getConnectorProfileById(java.lang.String id,
ConnectorBase.Profile prof)
Getting ConnectorProfile by name This operation returns ConnectorProfile specified by name |
boolean |
getConnectorProfileByName(java.lang.String name,
ConnectorBase.Profile prof)
Getting ConnectorProfile by name This operation returns ConnectorProfile specified by name |
java.util.Vector<ConnectorBase.Profile> |
getConnectorProfiles()
ConnectorProfile list This operation returns ConnectorProfile list |
(package private) void |
init(Properties prop)
Initializing properties This operation initializes outport's properties |
protected void |
initConsumers()
InPort consumer initialization |
protected void |
initProviders()
OutPort provider initialization |
boolean |
isLittleEndian()
|
java.lang.String |
name()
ポート名を取得します。 |
void |
onConnect(java.lang.String id,
PublisherBase publisher)
onConnect |
void |
onDisconnect(java.lang.String id)
onDisconenct |
Properties |
properties()
プロパティを取得する |
boolean |
publishInterfaceProfiles(NVListHolder properties)
Publish interface profile This operation publish interface profiles of this OutPort to DataOutPort. |
protected ReturnCode_t |
publishInterfaces(ConnectorProfileHolder cprof)
Publish interface information This operation is pure virutal function that would be called at the beginning of the notify_connect() process sequence. |
protected ReturnCode_t |
subscribeInterfaces(ConnectorProfileHolder cprof)
Subscribe to the interface This operation is pure virutal function that would be called at the middle of the notify_connect() process sequence. |
protected void |
unsubscribeInterfaces(ConnectorProfile connector_profile)
Interfaceの接続を解除します。 |
クラス 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 |
フィールドの詳細 |
---|
protected java.lang.String m_name
ポート名です。
protected java.util.List<OutPortBase.Publisher> m_publishers
protected Properties m_properties
protected java.util.Vector<OutPortConnector> m_connectors
protected java.util.Vector<InPortConsumer> m_consumers
protected java.util.Vector<java.lang.String> m_providerTypes
protected java.util.Vector<java.lang.String> m_consumerTypes
protected java.util.Vector<OutPortProvider> m_providers
コンストラクタの詳細 |
---|
public OutPortBase(java.lang.String name, java.lang.String data_type)
コンストラクタです。
name
- ポート名data_type
- メソッドの詳細 |
---|
void init(Properties prop)
Initializing properties
This operation initializes outport's properties
public Properties properties()
プロパティを取得する
public java.lang.String name()
ポート名を取得します。
public final java.util.Vector<OutPortConnector> connectors()
Connector list
This operation returns connector list
public java.util.Vector<ConnectorBase.Profile> getConnectorProfiles()
ConnectorProfile list
This operation returns ConnectorProfile list
public java.util.Vector<java.lang.String> getConnectorIds()
ConnectorId list
This operation returns ConnectorId list
public java.util.Vector<java.lang.String> getConnectorNames()
Connector name list
This operation returns Connector name list
public boolean getConnectorProfileById(java.lang.String id, ConnectorBase.Profile prof)
Getting ConnectorProfile by name
This operation returns ConnectorProfile specified by name
id
- Connector IDprof
- ConnectorProfile
public boolean getConnectorProfileByName(java.lang.String name, ConnectorBase.Profile prof)
Getting ConnectorProfile by name
This operation returns ConnectorProfile specified by name
name
- prof
- ConnectorProfile
public boolean publishInterfaceProfiles(NVListHolder properties)
Publish interface profile
This operation publish interface profiles of this OutPort to DataOutPort. This operation should be called from DataOutPort.
properties
- itnerface profilepublic void onConnect(java.lang.String id, PublisherBase publisher)
onConnect
public void onDisconnect(java.lang.String id)
onDisconenct
protected ReturnCode_t publishInterfaces(ConnectorProfileHolder cprof)
Publish interface information
This operation is pure virutal function that would be called at the beginning of the notify_connect() process sequence. In the notify_connect(), the following methods would be called in order.
- publishInterfaces()
- connectNext()
- subscribeInterfaces()
- updateConnectorProfile()
This operation should create the new connection for the new connector_id, and should update the connection for the existing connection_id.
PortBase
内の publishInterfaces
cprof
- The connection profile information
protected ReturnCode_t subscribeInterfaces(ConnectorProfileHolder cprof)
Subscribe to the interface
This operation is pure virutal function that would be called at the middle of the notify_connect() process sequence. In the notify_connect(), the following methods would be called in order.
- publishInterfaces()
- connectNext()
- subscribeInterfaces()
- updateConnectorProfile()
PortBase
内の subscribeInterfaces
cprof
- The connection profile information
protected void unsubscribeInterfaces(ConnectorProfile connector_profile)
PortBase
の記述:Interfaceの接続を解除します。
このメソッドは、notify_disconnect()処理シーケンスの終わりに呼び出されるテンプレートメソッドです。 notify_disconnect()では、
具象クラスでは、このメソッドをオーバーライドし、引数として 与えられた ConnectorProfile に従い接続解除処理を行います。
PortBase
内の unsubscribeInterfaces
connector_profile
- 接続プロファイル情報public void activateInterfaces()
Activate all Port interfaces
This operation activate all interfaces that is registered in the ports.
PortBase
内の activateInterfaces
public void deactivateInterfaces()
Deactivate all Port interfaces
This operation deactivate all interfaces that is registered in the ports.
PortBase
内の deactivateInterfaces
protected void configure()
Configureing outport
This operation configures the outport based on the properties.
protected void initProviders()
OutPort provider initialization
protected void initConsumers()
InPort consumer initialization
protected OutPortProvider createProvider(ConnectorProfileHolder cprof, Properties prop)
OutPort provider creation
protected InPortConsumer createConsumer(ConnectorProfileHolder cprof, Properties prop)
InPort consumer creation
protected OutPortConnector createConnector(ConnectorProfileHolder cprof, Properties prop, InPortConsumer consumer)
OutPortPushConnector creation
protected OutPortConnector createConnector(ConnectorProfileHolder cprof, Properties prop, OutPortProvider provider)
OutPortPullConnector creation
public boolean isLittleEndian()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |