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

java.lang.Object
  上位を拡張 jp.go.aist.rtm.RTC.port.ConnectorBase
      上位を拡張 jp.go.aist.rtm.RTC.port.InPortConnector
          上位を拡張 jp.go.aist.rtm.RTC.port.InPortPullConnector

public class InPortPullConnector
extends InPortConnector

InPortPullConnector

InPortPullConnector base class

A connector class for pull type dataflow of InPort

導入されたバージョン:
1.0.0

入れ子のクラスの概要
 
クラス jp.go.aist.rtm.RTC.port.ConnectorBase から継承された入れ子のクラス/インタフェース
ConnectorBase.ConnectorInfo, ConnectorBase.ConnectorInfoHolder
 
フィールドの概要
 
クラス jp.go.aist.rtm.RTC.port.InPortConnector から継承されたフィールド
m_buffer, m_isLittleEndian, m_orb, m_profile, m_spi_orb
 
コンストラクタの概要
InPortPullConnector(ConnectorBase.ConnectorInfo profile, OutPortConsumer consumer, ConnectorListeners listeners, BufferBase<org.omg.CORBA.portable.OutputStream> buffer)
           Constructor.
 
メソッドの概要
 void activate()
           Connector activation
protected  BufferBase<org.omg.CORBA.portable.OutputStream> createBuffer(ConnectorBase.ConnectorInfo profile)
           create buffer
 void deactivate()
           Connector deactivation
 ReturnCode disconnect()
           Disconnect connection
protected  void onConnect()
           Invoke callback when connection is established
protected  void onDisconnect()
           Invoke callback when connection is destroied
 ReturnCode read(DataRef<org.omg.CORBA.portable.InputStream> data)
           Destructor
 void setListener(ConnectorBase.ConnectorInfo profile, ConnectorListeners listeners)
           
 
クラス jp.go.aist.rtm.RTC.port.InPortConnector から継承されたメソッド
getBuffer, id, isLittleEndian, name, profile, setEndian
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

InPortPullConnector

public InPortPullConnector(ConnectorBase.ConnectorInfo profile,
                           OutPortConsumer consumer,
                           ConnectorListeners listeners,
                           BufferBase<org.omg.CORBA.portable.OutputStream> buffer)
                    throws java.lang.Exception
Constructor.

InPortPullConnector's constructor is given the following arguments. According to ConnectorInfo which includes connection information, a buffer is created. It is also given a pointer to the consumer object for the OutPort interface. The owner-ship of the pointer is owned by this OutPortPullConnector, it has responsibility to destruct the OutPortConsumer. OutPortPullConnector also has ConnectorListeners to provide event callback mechanisms, and they would be called at the proper timing. If data buffer is given by OutPortBase, the pointer to the buffer is also given as arguments.

パラメータ:
profile - ConnectorInfo
consumer - consumer OutPortConsumer
listeners - ConnectorListeners type lsitener object list
buffer - CdrBufferBase type buffer
例外:
java.lang.Exception
メソッドの詳細

read

public ReturnCode read(DataRef<org.omg.CORBA.portable.InputStream> data)

Destructor

The read function to read data from buffer to InPort

定義:
クラス InPortConnector 内の read

disconnect

public ReturnCode disconnect()
Disconnect connection

This operation disconnect this connection

定義:
クラス InPortConnector 内の disconnect

activate

public void activate()

Connector activation

This operation activates this connector

定義:
クラス ConnectorBase 内の activate

deactivate

public void deactivate()

Connector deactivation

This operation deactivates this connector

定義:
クラス ConnectorBase 内の deactivate

createBuffer

protected BufferBase<org.omg.CORBA.portable.OutputStream> createBuffer(ConnectorBase.ConnectorInfo profile)

create buffer


onConnect

protected void onConnect()

Invoke callback when connection is established


onDisconnect

protected void onDisconnect()
Invoke callback when connection is destroied


setListener

public void setListener(ConnectorBase.ConnectorInfo profile,
                        ConnectorListeners listeners)
定義:
クラス InPortConnector 内の setListener