jp.go.aist.rtm.RTC.port
クラス DataOutPort<DataType>

java.lang.Object
  上位を拡張 org.omg.PortableServer.Servant
      上位を拡張 RTC.PortServicePOA
          上位を拡張 jp.go.aist.rtm.RTC.port.PortBase
              上位を拡張 jp.go.aist.rtm.RTC.port.DataOutPort<DataType>
型パラメータ:
DataType - データ型を指定します。
すべての実装されたインタフェース:
SDOServiceOperations, org.omg.CORBA.portable.InvokeHandler, PortServiceOperations

public class DataOutPort<DataType>
extends PortBase

データ出力ポートです。


入れ子のクラスの概要
 
クラス 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
 
フィールドの概要
 
クラス 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, rtcout
 
コンストラクタの概要
DataOutPort(java.lang.Class<DataType> DATA_TYPE_CLASS, java.lang.String name, OutPort<DataType> outPort, Properties prop)
          コンストラクタです。
 
メソッドの概要
 void activateInterfaces()
           Activate all Port interfaces
 void deactivateInterfaces()
           Deactivate all Port interfaces
protected  ReturnCode_t publishInterfaces(ConnectorProfileHolder connector_profile)
          Interface 情報を公開します。
protected  ReturnCode_t subscribeInterfaces(ConnectorProfileHolder connector_profile)
          Interface情報を取得します。
protected  void unsubscribeInterfaces(ConnectorProfile connector_profile)
          Interfaceの接続を解除します。
 
クラス jp.go.aist.rtm.RTC.port.PortBase から継承されたメソッド
_publishInterfaces, _this, addProperty, appendInterface, appendProperty, checkPorts, connect, connectNext, deleteInterface, disconnect_all, disconnect, disconnectNext, eraseConnectorProfile, findConnProfile, findConnProfileIndex, get_connector_profile, get_connector_profiles, get_port_profile, getName, getPortProfile, getPortRef, getProfile, getUUID, isEmptyId, isExistingConnId, notify_connect, notify_disconnect, setConnectionLimit, setName, setOnConnected, setOnConnectionLost, setOnDisconnected, setOnPublishInterfaces, setOnSubscribeInterfaces, setOnUnsubscribeInterfaces, setOwner, setPortRef, setUUID, updateConnectorProfile, updateConnectors
 
クラス 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
 

コンストラクタの詳細

DataOutPort

public DataOutPort(java.lang.Class<DataType> DATA_TYPE_CLASS,
                   java.lang.String name,
                   OutPort<DataType> outPort,
                   Properties prop)
            throws java.lang.Exception

コンストラクタです。

パラメータ:
DATA_TYPE_CLASS - 型パラメータ<DataType>で指定したクラスのClassオブジェクト
name - ポート名称
outPort - 当該データ出力ポートに関連付けるOutPortオブジェクト
例外:
java.lang.Exception
メソッドの詳細

publishInterfaces

protected ReturnCode_t publishInterfaces(ConnectorProfileHolder connector_profile)

Interface 情報を公開します。

このメソッドは、notify_connect()処理シーケンスの始めに呼び出されるテンプレートメソッドです。 notify_connect()では、

  1. publishInterfaces()
  2. connectNext()
  3. subscribeInterfaces()
  4. updateConnectorProfile()
の順にprotectedメソッドが呼び出されて接続処理が行われます。

このメソッドの処理は、新規のconnector_idに対しては接続の生成が適切に行われる必要があります。
また、既存のconnector_idに対しては更新が適切に行われる必要があります。

定義:
クラス PortBase 内の publishInterfaces
パラメータ:
connector_profile - 接続プロファイル情報
戻り値:
ReturnCode_t 戻り値

subscribeInterfaces

protected ReturnCode_t subscribeInterfaces(ConnectorProfileHolder connector_profile)

Interface情報を取得します。

このメソッドは、notify_connect()処理シーケンスの中間に呼び出されるテンプレートメソッドです。 notify_connect()では、

  1. publishInterfaces()
  2. connectNext()
  3. subscribeInterfaces()
  4. updateConnectorProfile()
の順にprotectedメソッドが呼び出され接続処理が行われます。

定義:
クラス PortBase 内の subscribeInterfaces
パラメータ:
connector_profile - 接続プロファイル情報
戻り値:
ReturnCode_t 戻り値

unsubscribeInterfaces

protected void unsubscribeInterfaces(ConnectorProfile connector_profile)

Interfaceの接続を解除します。

このメソッドは、notify_disconnect()処理シーケンスの終わりに呼び出されるテンプレートメソッドです。 notify_disconnect()では、

  1. disconnectNext()
  2. unsubscribeInterfaces()
  3. eraseConnectorProfile()
の順にprotectedメソッドが呼び出され接続解除処理が行われます。

定義:
クラス PortBase 内の unsubscribeInterfaces
パラメータ:
connector_profile - 接続プロファイル情報

activateInterfaces

public void activateInterfaces()

Activate all Port interfaces

定義:
クラス PortBase 内の activateInterfaces

deactivateInterfaces

public void deactivateInterfaces()

Deactivate all Port interfaces

定義:
クラス PortBase 内の deactivateInterfaces