OpenRTM_aist.OutPortPullConnector.OutPortPullConnector Class Reference

OutPortPullConnector class. More...

Inheritance diagram for OpenRTM_aist.OutPortPullConnector.OutPortPullConnector:
OpenRTM_aist.OutPortConnector.OutPortConnector OpenRTM_aist.ConnectorBase.ConnectorBase OpenRTM_aist.DataPortStatus.DataPortStatus

List of all members.

Public Member Functions

def __init__
 Constructor.
def __del__
 Destructor.
def write
 Writing data.
def disconnect
 disconnect
def getBuffer
 Getting Buffer.
def activate
 Connector activation.
def deactivate
 Connector deactivation.
def createBuffer
 create buffer
def onConnect
 Invoke callback when connection is establishedvoid onConnect().
def onDisconnect
 Invoke callback when connection is destroiedvoid onDisconnect().

Detailed Description

OutPortPullConnector class.

Connector class of OutPort for pull type dataflow. When "pull" is specified as dataflow_type at the time of establishing connection, this object is generated and owned by the OutPort. This connector and InPortPullConnector make a pair and realize pull type dataflow of data ports. One connector corresponds to one connection which provides a data stream. Connector is distinguished by ID of the UUID that is generated at establishing connection.

OutPortPullConnector owns and manages the following objects.

Data written into the OutPort is passed to OutPortPullConnector.write(), and it is written into the buffer. By reading data from OutPortPullConnector to InPortPullConnector, data transfer is realized.

Since:
1.0.0

Member Function Documentation

def OpenRTM_aist.OutPortPullConnector.OutPortPullConnector.__del__ (   self  ) 

Destructor.

This operation calls disconnect(), which destructs and deletes the consumer, the publisher and the buffer.

Reimplemented from OpenRTM_aist.OutPortConnector.OutPortConnector.

def OpenRTM_aist.OutPortPullConnector.OutPortPullConnector.__init__ (   self,
  info,
  provider,
  listeners,
  buffer = 0 
)

Constructor.

OutPortPullConnector'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 provider object for the OutPort interface. The owner-ship of the pointer is owned by this OutPortPullConnector, it has responsibility to destruct the OutPortProvider. 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.

Parameters:
info ConnectorInfo
provider OutPortProvider
listeners ConnectorListeners type lsitener object list
buffer CdrBufferBase type buffer

OutPortPullConnector(ConnectorInfo info, OutPortProvider* provider, ConnectorListeners& listeners, CdrBufferBase* buffer = 0);

def OpenRTM_aist.OutPortPullConnector.OutPortPullConnector.activate (   self  ) 

Connector activation.

This operation activates this connector

virtual void activate(){}; // do nothing

Reimplemented from OpenRTM_aist.ConnectorBase.ConnectorBase.

def OpenRTM_aist.OutPortPullConnector.OutPortPullConnector.createBuffer (   self,
  info 
)

create buffer

CdrBufferBase* createBuffer(ConnectorInfo& info);

def OpenRTM_aist.OutPortPullConnector.OutPortPullConnector.deactivate (   self  ) 

Connector deactivation.

This operation deactivates this connector

virtual void deactivate(){}; // do nothing

Reimplemented from OpenRTM_aist.ConnectorBase.ConnectorBase.

def OpenRTM_aist.OutPortPullConnector.OutPortPullConnector.disconnect (   self  ) 

disconnect

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

virtual ReturnCode disconnect();

Reimplemented from OpenRTM_aist.ConnectorBase.ConnectorBase.

def OpenRTM_aist.OutPortPullConnector.OutPortPullConnector.getBuffer (   self  ) 

Getting Buffer.

This operation returns this connector's buffer

virtual CdrBufferBase* getBuffer();

Reimplemented from OpenRTM_aist.ConnectorBase.ConnectorBase.

def OpenRTM_aist.OutPortPullConnector.OutPortPullConnector.write (   self,
  data 
)

Writing data.

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

virtual ReturnCode write(const cdrMemoryStream& data);


The documentation for this class was generated from the following file:
Generated on Mon Mar 2 14:14:05 2015 for OpenRTM-aist-1.1.0-Python by  doxygen 1.6.3