Public Member Functions
test_PortAdmin.PortBase Class Reference
Inheritance diagram for test_PortAdmin.PortBase:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def activateInterfaces
def deactivateInterfaces
def publishInterfaces
 Publish interface information.
def subscribeInterfaces
 Publish interface information.
def unsubscribeInterfaces
 Disconnect interface connection.

Detailed Description

Definition at line 30 of file test_PortAdmin.py.


Constructor & Destructor Documentation

Definition at line 31 of file test_PortAdmin.py.


Member Function Documentation

Definition at line 43 of file test_PortAdmin.py.

Definition at line 47 of file test_PortAdmin.py.

def test_PortAdmin.PortBase.publishInterfaces (   self,
  connector_profile 
)

Publish interface information.

This operation is pure virutal method that would be called at the beginning of the notify_connect() process sequence. In the notify_connect(), the following methods would be called in order.

In the concrete Port, this method should be overridden. This method processes the given ConnectorProfile argument and if the given parameter is invalid, it would return error code of ReturnCode_t. Usually, publishInterfaces() method should set interfaces information owned by this Port, and publish it to the other Ports.
When this method is called, other Ports' interfaces information may not be completed. Therefore, the process to obtain other Port's interfaces information should be done in the subscribeInterfaces() method.
This operation should create the new connection for the new connector_id, and should update the connection for the existing connection_id.

Parameters:
connector_profileThe connection profile information
Returns:
The return code of ReturnCode_t type.

Reimplemented from OpenRTM_aist.PortBase.PortBase.

Definition at line 34 of file test_PortAdmin.py.

def test_PortAdmin.PortBase.subscribeInterfaces (   self,
  connector_profile 
)

Publish interface information.

This operation is pure virutal method that would be called at the mid-flow of the notify_connect() process sequence. In the notify_connect(), the following methods would be called in order.

In the concrete Port, this method should be overridden. This method processes the given ConnectorProfile argument and if the given parameter is invalid, it would return error code of ReturnCode_t. The given argument ConnectorProfile includes all the interfaces information in it. Usually, subscribeInterafaces() method obtains information of interfaces from ConnectorProfile, and should set it to the interfaces that require them.
This operation should create the new connection for the new connector_id, and should update the connection for the existing connection_id.

Parameters:
connector_profileThe connection profile information
Returns:
The return code of ReturnCode_t type.

Reimplemented from OpenRTM_aist.PortBase.PortBase.

Definition at line 37 of file test_PortAdmin.py.

def test_PortAdmin.PortBase.unsubscribeInterfaces (   self,
  connector_profile 
)

Disconnect interface connection.

This operation is pure virutal method that would be called at the end of the notify_disconnect() process sequence. In the notify_disconnect(), the following methods would be called.

Parameters:
connector_profileThe connection profile information

Reimplemented from OpenRTM_aist.PortBase.PortBase.

Definition at line 40 of file test_PortAdmin.py.


The documentation for this class was generated from the following file:


openrtm_aist_python
Author(s): Shinji Kurihara
autogenerated on Thu Aug 27 2015 14:17:30