jp.go.aist.rtm.RTC.port
クラス OutPortProviderImpl

java.lang.Object
  上位を拡張 org.omg.PortableServer.Servant
      上位を拡張 OpenRTM.OutPortCdrPOA
          上位を拡張 jp.go.aist.rtm.RTC.port.OutPortProviderImpl
すべての実装されたインタフェース:
OutPortProvider, OutPortCdrOperations, org.omg.CORBA.portable.InvokeHandler
直系の既知のサブクラス:
OutPortTcpSockProvider

public class OutPortProviderImpl
extends OutPortCdrPOA
implements OutPortProvider

OutPortProviderインタフェースのベース実装クラスです。


フィールドの概要
protected  NVListHolder m_properties
          接続プロフィールを保持するメンバ変数です。
 
コンストラクタの概要
OutPortProviderImpl()
           
 
メソッドの概要
 PortStatus get(CdrDataHolder data)
           [CORBA interface] Get data from the buffer Get data from the internal buffer.
 void init(Properties prop)
           Initializing configuration This operation would be called to configure in initialization.
 boolean publishInterface(NVListHolder properties)
          Interface情報を公開します。
 void publishInterfaceProfile(NVListHolder properties)
          InterfaceProfile情報を公開します。
 void setBuffer(BufferBase<org.omg.CORBA.portable.InputStream> buffer)
           Setting outside buffer's pointer A pointer to a buffer from which OutPortProvider retrieve data.
protected  void setDataFlowType(java.lang.String dataFlowType)
          インタフェースプロフィールのデータフロータイプを設定します。
protected  void setDataType(java.lang.String dataType)
          インタフェースポロフィールのデータタイプを設定します。
protected  void setInterfaceType(java.lang.String interfaceType)
          インタフェースプロフィールのインタフェースタイプを設定します。
protected  void setPortType(java.lang.String portType)
          インタフェースプロフィールのポートタイプを設定します。
protected  void setSubscriptionType(java.lang.String subscriptionType)
          インタフェースプロフィールのサブスクリプションタイプを設定します。
 
クラス OpenRTM.OutPortCdrPOA から継承されたメソッド
_all_interfaces, _invoke, _this, _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
 

フィールドの詳細

m_properties

protected NVListHolder m_properties

接続プロフィールを保持するメンバ変数です。

コンストラクタの詳細

OutPortProviderImpl

public OutPortProviderImpl()
メソッドの詳細

publishInterfaceProfile

public void publishInterfaceProfile(NVListHolder properties)
インタフェース OutPortProvider の記述:

InterfaceProfile情報を公開します。 引数で指定するホルダ内のNameValueオブジェクトのdataport.interface_type値を調べ、 当該ポートのインタフェースタイプと一致する場合のみ情報が取得されます。

定義:
インタフェース OutPortProvider 内の publishInterfaceProfile
パラメータ:
properties - Interface情報を受け取るホルダオブジェクト

publishInterface

public boolean publishInterface(NVListHolder properties)
インタフェース OutPortProvider の記述:

Interface情報を公開します。

定義:
インタフェース OutPortProvider 内の publishInterface
パラメータ:
properties - InterfaceProfile情報を受け取るホルダオブジェクト
戻り値:
boolean

init

public void init(Properties prop)
インタフェース OutPortProvider の記述:

Initializing configuration

This operation would be called to configure in initialization.

In the concrete class, configuration should be performed

getting appropriate information from the given Properties data.

This function might be called right after instantiation and

connection sequence respectivly. Therefore, this function

should be implemented assuming multiple call.

定義:
インタフェース OutPortProvider 内の init
パラメータ:
prop - Configuration information

setBuffer

public void setBuffer(BufferBase<org.omg.CORBA.portable.InputStream> buffer)
インタフェース OutPortProvider の記述:

Setting outside buffer's pointer

A pointer to a buffer from which OutPortProvider retrieve data.

If already buffer is set, previous buffer's pointer will be

overwritten by the given pointer to a buffer. Since

OutPortProvider does not assume ownership of the buffer

pointer, destructor of the buffer should be done by user.

定義:
インタフェース OutPortProvider 内の setBuffer
パラメータ:
buffer - A pointer to a data buffer to be used by OutPortProvider

get

public PortStatus get(CdrDataHolder data)

[CORBA interface] Get data from the buffer

Get data from the internal buffer.

定義:
インタフェース OutPortCdrOperations 内の get
パラメータ:
data -
戻り値:
Data got from the buffer.

setPortType

protected void setPortType(java.lang.String portType)

インタフェースプロフィールのポートタイプを設定します。

パラメータ:
portType - ポートタイプ

setDataType

protected void setDataType(java.lang.String dataType)

インタフェースポロフィールのデータタイプを設定します。

パラメータ:
dataType - データタイプ

setInterfaceType

protected void setInterfaceType(java.lang.String interfaceType)

インタフェースプロフィールのインタフェースタイプを設定します。

パラメータ:
interfaceType - インタフェースタイプ

setDataFlowType

protected void setDataFlowType(java.lang.String dataFlowType)

インタフェースプロフィールのデータフロータイプを設定します。

パラメータ:
dataFlowType - データフロータイプ

setSubscriptionType

protected void setSubscriptionType(java.lang.String subscriptionType)

インタフェースプロフィールのサブスクリプションタイプを設定します。

パラメータ:
subscriptionType - サブスクリプションタイプ