OpenRTM-aist-Python 2.0.2
OpenRTM_aist.EventPort.EventInPort クラス

[詳解]

OpenRTM_aist.EventPort.EventInPort の継承関係図
OpenRTM_aist.InPortBase.InPortBase OpenRTM_aist.PortBase.PortBase OpenRTM_aist.DataPortStatus.DataPortStatus

公開メンバ関数

 __init__ (self, name, fsm)
 
 __del__ (self)
 
 name (self)
 
 init (self, prop)
 
 bindEvent0 (self, name, handler)
 
 bindEvent1 (self, name, handler, data_type)
 
- 基底クラス OpenRTM_aist.InPortBase.InPortBase に属する継承公開メンバ関数
 read (self)
 
 properties (self)
 
 connectors (self)
 
 getConnectorProfiles (self)
 
 getConnectorIds (self)
 
 getConnectorNames (self)
 
 getConnectorById (self, id)
 
 getConnectorByName (self, name)
 
 getConnectorProfileById (self, id)
 
 getConnectorProfileByName (self, name)
 
 connect (self, connector_profile)
 
 notify_connect (self, connector_profile)
 
 activateInterfaces (self)
 
 deactivateInterfaces (self)
 
 addConnectorDataListener (self, listener_type, listener)
 
 removeConnectorDataListener (self, listener_type, listener)
 
 addConnectorListener (self, listener_type, listener)
 
 removeConnectorListener (self, listener_type, listener)
 
 publishInterfaces (self, cprof)
 
 subscribeInterfaces (self, cprof)
 
 unsubscribeInterfaces (self, connector_profile)
 
 initProviders (self)
 
 initConsumers (self)
 
 createProvider (self, cprof, prop)
 
 createConsumer (self, cprof, prop)
 
 createConnector (self, cprof, prop, provider_=None, consumer_=None)
 
 createDuplexConnector (self, cprof, prop, provider_)
 
 getLocalOutPort (self, profile)
 
- 基底クラス OpenRTM_aist.PortBase.PortBase に属する継承公開メンバ関数
 exit (self)
 
 get_port_profile (self)
 
 getPortProfile (self)
 
 get_connector_profiles (self)
 
 get_connector_profile (self, connector_id)
 
 disconnect (self, connector_id)
 
 notify_disconnect (self, connector_id)
 
 disconnect_all (self)
 
 setName (self, name)
 
 getName (self)
 
 getProfile (self)
 
 setPortRef (self, port_ref)
 
 getPortRef (self)
 
 setOwner (self, owner)
 
 setOnPublishInterfaces (self, on_publish)
 
 setOnSubscribeInterfaces (self, on_subscribe)
 
 setOnConnected (self, on_connected)
 
 setOnUnsubscribeInterfaces (self, on_subscribe)
 
 setOnDisconnected (self, on_disconnected)
 
 setPortConnectListenerHolder (self, portconnListeners)
 
 connectNext (self, connector_profile)
 
 disconnectNext (self, connector_profile)
 
 setConnectionLimit (self, limit_value)
 
 isEmptyId (self, connector_profile)
 
 getUUID (self)
 
 setUUID (self, connector_profile)
 
 isExistingConnId (self, id_)
 
 findConnProfile (self, id_)
 
 findConnProfileIndex (self, id_)
 
 updateConnectorProfile (self, connector_profile)
 
 eraseConnectorProfile (self, id_)
 
 appendInterface (self, instance_name, type_name, pol)
 
 deleteInterface (self, name, pol)
 
 addProperty (self, key, value)
 
 appendProperty (self, key, value)
 
 updateConnectors (self)
 
 checkPorts (self, ports)
 
 isExistingMarshalingType (self, con_prop)
 
- 基底クラス OpenRTM_aist.DataPortStatus.DataPortStatus に属する継承公開メンバ関数
 toString (status)
 

その他の継承メンバ

- 基底クラス OpenRTM_aist.DataPortStatus.DataPortStatus に属する継承静的公開変数類
int PORT_OK = 0
 brief DataPortStatus リターンコード
 
- 基底クラス OpenRTM_aist.PortBase.PortBase に属する継承限定公開メンバ関数
 _publishInterfaces (self)
 

詳解

EventInPort テンプレートクラス

EventInPort の実装である EventInPort<T> のテンプレートクラス。 <T> はBasicDataType.idl にて定義されている型で、メンバとして Time 型の tm , および T型の data を持つ構造体でなくてはならない。 EventInPort は内部にリングバッファを持ち、外部から送信されたデータを順次 このリングバッファに格納する。リングバッファのサイズはデフォルトで8と なっているが、コンストラクタ引数によりサイズを指定することができる。 データはフラグによって未読、既読状態が管理され、isNew(), write(), read(), isFull(), isEmpty() 等のメソッドによりハンドリングすることができる。

OnRead系コールバック (読み出しに起因するイベントによりコールされる)

  • void OnRead.operator(): EventInPort.read() を呼び出し読み出しを行う際にコールされる。
  • DataType OnReadConvert.operator(DataType): EventInPort.read() を呼び出し、データをバッファから読みだす際に呼ばれ データの変換を行う。引数にはバッファから読み出された値が与えられ、 変換後のデータを戻り値として返す。この値がread()の返す値となる。
から
2.0.0

構築子と解体子

◆ __init__()

OpenRTM_aist.EventPort.EventInPort.__init__ ( self,
name,
fsm )

コンストラクタ

コンストラクタ。 パラメータとして与えられる T 型の変数にバインドされる。

引数
nameEventInPort 名。EventInPortBase:name() により参照される。
valueこの EventInPort にバインドされる T 型の変数

OpenRTM_aist.InPortBase.InPortBaseを再実装しています。

◆ __del__()

OpenRTM_aist.EventPort.EventInPort.__del__ ( self)

デストラクタ

デストラクタ。

OpenRTM_aist.InPortBase.InPortBaseを再実装しています。

メソッド詳解

◆ bindEvent0()

OpenRTM_aist.EventPort.EventInPort.bindEvent0 ( self,
name,
handler )

引数なしのイベントハンドラを登録する コネクタのON_RECEIVEDコールバック実行時にバッファに実行予定のイベントとして格納する バッファに格納したイベントはMachineのrun_event関数で実行する

引数
nameイベント名
handlerイベントハンドラ

◆ bindEvent1()

OpenRTM_aist.EventPort.EventInPort.bindEvent1 ( self,
name,
handler,
data_type )

引数1つのイベントハンドラを登録する コネクタのON_RECEIVEDコールバック実行時にバッファに実行予定のイベントとして格納する バッファに格納したイベントはMachineのrun_event関数で実行する

引数
nameイベント名
handlerイベントハンドラ
data_typeデータ型

◆ init()

OpenRTM_aist.EventPort.EventInPort.init ( self,
prop )

初期化 InPortBaseの初期化のほかにバッファ初期化のためのコネクタコールバック関数の登録を行う

引数
prop設定情報

OpenRTM_aist.InPortBase.InPortBaseを再実装しています。

◆ name()

OpenRTM_aist.EventPort.EventInPort.name ( self)

ポート名称を取得する。

ポート名称を取得する。

戻り値
ポート名称

このクラス詳解は次のファイルから抽出されました: