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

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

public class OutPortPushConnector
extends OutPortConnector


入れ子のクラスの概要
 
クラス jp.go.aist.rtm.RTC.port.ConnectorBase から継承された入れ子のクラス/インタフェース
ConnectorBase.ConnectorInfo, ConnectorBase.ConnectorInfoHolder
 
フィールドの概要
(package private)  ConnectorListeners m_listeners
           A reference to a ConnectorListener
 
クラス jp.go.aist.rtm.RTC.port.OutPortConnector から継承されたフィールド
m_isLittleEndian, m_profile, rtcout
 
コンストラクタの概要
OutPortPushConnector(ConnectorBase.ConnectorInfo profile, ConnectorListeners listeners, InPortConsumer consumer)
           
OutPortPushConnector(ConnectorBase.ConnectorInfo profile, InPortConsumer 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
protected  PublisherBase createPublisher(ConnectorBase.ConnectorInfo profile)
           create publisher
 void deactivate()
           Connector deactivation
 ReturnCode disconnect()
           disconnect
 BufferBase<org.omg.CORBA.portable.OutputStream> getBuffer()
           Getting Buffer
protected  void onConnect()
           Invoke callback when connection is established
protected  void onDisconnect()
           Invoke callback when connection is destroied
 void setOutPortBase(OutPortBase outportbase)
           
<DataType> ReturnCode
write(DataType data)
           Writing data
 
クラス jp.go.aist.rtm.RTC.port.OutPortConnector から継承されたメソッド
id, isLittleEndian, name, profile, setEndian
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

m_listeners

ConnectorListeners m_listeners

A reference to a ConnectorListener

コンストラクタの詳細

OutPortPushConnector

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

OutPortPushConnector's constructor is given the following arguments. According to ConnectorInfo which includes connection information, a publisher and a buffer are created. It is also given a pointer to the consumer object for the InPort interface. The owner-ship of the pointer is owned by this OutPortPushConnector, it has responsibility to destruct the InPortConsumer. OutPortPushConnector 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 - InPortConsumer
listeners - ConnectorListeners type lsitener object list
buffer - CdrBufferBase type buffer
例外:
java.lang.Exception

OutPortPushConnector

public OutPortPushConnector(ConnectorBase.ConnectorInfo profile,
                            ConnectorListeners listeners,
                            InPortConsumer consumer)
                     throws java.lang.Exception
例外:
java.lang.Exception
メソッドの詳細

write

public <DataType> ReturnCode write(DataType data)

Writing data

This operation writes data into publisher and then the data will be transferred to correspondent InPort.

定義:
クラス OutPortConnector 内の write
パラメータ:
data -
戻り値:
ReturnCode

disconnect

public ReturnCode disconnect()
disconnect

This operation destruct and delete the consumer, the publisher and the buffer.

定義:
クラス OutPortConnector 内の disconnect

activate

public void activate()

Connector activation

This operation activates this connector

定義:
クラス ConnectorBase 内の activate

getBuffer

public BufferBase<org.omg.CORBA.portable.OutputStream> getBuffer()

Getting Buffer

This operation returns this connector's buffer

定義:
クラス OutPortConnector 内の getBuffer

setOutPortBase

public void setOutPortBase(OutPortBase outportbase)
定義:
クラス OutPortConnector 内の setOutPortBase

deactivate

public void deactivate()

Connector deactivation

This operation deactivates this connector

定義:
クラス ConnectorBase 内の deactivate

createPublisher

protected PublisherBase createPublisher(ConnectorBase.ConnectorInfo profile)

create publisher


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