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

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

public class OutPortCorbaProvider<DataType>
extends OutPortAnyPOA
implements OutPortProvider

CORBAを通信手段とする出力ポートプロバイダの実装です。


コンストラクタの概要
OutPortCorbaProvider(java.lang.Class<DataType> DATA_TYPE_CLASS, BufferBase<DataType> buffer)
          コンストラクタです。
 
メソッドの概要
 OutPortAny _this()
          当該プロバイダのCORBAオブジェクト参照を取得します。
 org.omg.CORBA.Any get()
          内部バッファからデータを読み出します。
 void init(Properties prop)
           Initializing configuration This operation would be called to configure in initialization.
 boolean publishInterface(NVListHolder properties)
          接続プロファイルを取得します。
 void publishInterfaceProfile(NVListHolder properties)
          インタフェースプロファイルを取得します。
 void setBuffer(BufferBase<org.omg.CORBA.portable.InputStream> buffer)
           Setting outside buffer's pointer A pointer to a buffer from which OutPortProvider retrieve data.
 
クラス RTC.OutPortAnyPOA から継承されたメソッド
_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
 

コンストラクタの詳細

OutPortCorbaProvider

public OutPortCorbaProvider(java.lang.Class<DataType> DATA_TYPE_CLASS,
                            BufferBase<DataType> buffer)
                     throws java.lang.Exception

コンストラクタです。

パラメータ:
DATA_TYPE_CLASS - 型パラメータで指定したデータ型のClassオブジェクト
buffer - 当該プロバイダに割り当てるバッファ
例外:
java.lang.Exception
メソッドの詳細

_this

public OutPortAny _this()

当該プロバイダのCORBAオブジェクト参照を取得します。

オーバーライド:
クラス OutPortAnyPOA 内の _this
戻り値:
当該プロバイダのCORBAオブジェクト参照

get

public org.omg.CORBA.Any get()

内部バッファからデータを読み出します。

定義:
インタフェース OutPortAnyOperations 内の get
戻り値:
読み出したデータ

publishInterfaceProfile

public void publishInterfaceProfile(NVListHolder properties)

インタフェースプロファイルを取得します。

定義:
インタフェース OutPortProvider 内の publishInterfaceProfile
パラメータ:
properties - インタフェースプロファイルを受け取るNVListHolderオブジェクト

publishInterface

public boolean publishInterface(NVListHolder properties)

接続プロファイルを取得します。指定されたNVListHolder内に保持されている インタフェースタイプと照合して、タイプが一致する場合にのみ取得されます。

定義:
インタフェース OutPortProvider 内の publishInterface
パラメータ:
properties - 接続プロファイルを受け取るNVListHolderオブジェクトを指定します。 あらかじめ、dataport.interface_typeにインタフェースタイプを設定しておく必要があります。
戻り値:
boolean

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

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