Base port object. More...

Public Member Functions | |
| def | __init__ |
| def | connect |
| def | connections |
| def | disconnect_all |
| def | get_connection_by_dest |
| def | get_connection_by_id |
| def | get_connection_by_name |
| def | get_connections_by_dest |
| def | get_connections_by_dests |
| def | is_connected |
| def | name |
| def | object |
| def | owner |
| def | porttype |
| def | properties |
| def | reparse |
| def | reparse_connections |
Public Attributes | |
| porttype | |
Private Member Functions | |
| def | _parse |
Private Attributes | |
| _connections | |
| _mutex | |
| _name | |
| _obj | |
| _owner | |
| _properties | |
Base port object.
Base class representing a port of a component. Do not create Port objects directly. Call parse_port().
| def rtctree.ports.Port.__init__ | ( | self, | |
port_obj = None, |
|||
owner = None, |
|||
| args, | |||
| kwargs | |||
| ) |
Base port constructor.
@param port_obj The CORBA PortService object to wrap.
@param owner The owner of this port. Should be a Component object or
None.
Reimplemented in rtctree.ports.CorbaPort, and rtctree.ports.DataPort.
| def rtctree.ports.Port._parse | ( | self | ) | [private] |
| def rtctree.ports.Port.connect | ( | self, | |
dests = [], |
|||
name = None, |
|||
id = '', |
|||
props = {} |
|||
| ) |
Connect this port to other ports.
After the connection has been made, a delayed reparse of the
connections for this and the destination port will be triggered.
@param dests A list of the destination Port objects. Must be provided.
@param name The name of the connection. If None, a suitable default
will be created based on the names of the two ports.
@param id The ID of this connection. If None, one will be generated by
the RTC implementation.
@param props Properties of the connection. Required values depend on
the type of the two ports being connected.
@raises IncompatibleDataPortConnectionPropsError, FailedToConnectError
Reimplemented in rtctree.ports.CorbaPort, and rtctree.ports.DataPort.
| def rtctree.ports.Port.connections | ( | self | ) |
| def rtctree.ports.Port.disconnect_all | ( | self | ) |
| def rtctree.ports.Port.get_connection_by_dest | ( | self, | |
| dest | |||
| ) |
| def rtctree.ports.Port.get_connection_by_id | ( | self, | |
| id | |||
| ) |
| def rtctree.ports.Port.get_connection_by_name | ( | self, | |
| name | |||
| ) |
| def rtctree.ports.Port.get_connections_by_dest | ( | self, | |
| dest | |||
| ) |
| def rtctree.ports.Port.get_connections_by_dests | ( | self, | |
| dests | |||
| ) |
| def rtctree.ports.Port.is_connected | ( | self | ) |
| def rtctree.ports.Port.name | ( | self | ) |
| def rtctree.ports.Port.object | ( | self | ) |
| def rtctree.ports.Port.owner | ( | self | ) |
| def rtctree.ports.Port.porttype | ( | self | ) |
| def rtctree.ports.Port.properties | ( | self | ) |
| def rtctree.ports.Port.reparse | ( | self | ) |
| def rtctree.ports.Port.reparse_connections | ( | self | ) |
rtctree::ports.Port::_connections [private] |
rtctree::ports.Port::_mutex [private] |
rtctree::ports.Port::_name [private] |
rtctree::ports.Port::_obj [private] |
rtctree::ports.Port::_owner [private] |
rtctree::ports.Port::_properties [private] |
Reimplemented in rtctree.ports.DataPort.