Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
rtctree.ports.Port Class Reference

Base port object. More...

Inheritance diagram for rtctree.ports.Port:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

Base port object.

Base class representing a port of a component.

Do not create Port objects directly. Call parse_port().

Definition at line 62 of file ports.py.


Constructor & Destructor Documentation

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.

Definition at line 68 of file ports.py.


Member Function Documentation

def rtctree.ports.Port._parse (   self) [private]

Definition at line 245 of file ports.py.

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.

Definition at line 83 of file ports.py.

A list of connections to or from this port.

This list will be created at the first reference to this property.
This means that the first reference may be delayed by CORBA calls,
but others will return quickly (unless a delayed reparse has been
triggered).

Definition at line 189 of file ports.py.

Disconnect all connections to this port.

Definition at line 125 of file ports.py.

def rtctree.ports.Port.get_connection_by_dest (   self,
  dest 
)
DEPRECATED. Search for a connection between this and another port.

Definition at line 132 of file ports.py.

def rtctree.ports.Port.get_connection_by_id (   self,
  id 
)
Search for a connection on this port by its ID.

Definition at line 162 of file ports.py.

def rtctree.ports.Port.get_connection_by_name (   self,
  name 
)
Search for a connection to or from this port by name.

Definition at line 170 of file ports.py.

def rtctree.ports.Port.get_connections_by_dest (   self,
  dest 
)
Search for all connections between this and another port.

Definition at line 140 of file ports.py.

def rtctree.ports.Port.get_connections_by_dests (   self,
  dests 
)
Search for all connections involving this and all other ports.

Definition at line 149 of file ports.py.

Check if this port is connected to any other ports.

Definition at line 205 of file ports.py.

def rtctree.ports.Port.name (   self)
The name of this port.

Definition at line 213 of file ports.py.

def rtctree.ports.Port.object (   self)
The PortService object that represents the port.

Definition at line 219 of file ports.py.

def rtctree.ports.Port.owner (   self)
This port's owner (usually a Component object).

Definition at line 225 of file ports.py.

The type of port this is.

Valid values are any class that @ref parse_port can create.

Definition at line 231 of file ports.py.

Properties of the port.

Definition at line 240 of file ports.py.

Reparse the port.

Definition at line 178 of file ports.py.

Reparse the connections this port is involved in.

Definition at line 183 of file ports.py.


Member Data Documentation

Definition at line 74 of file ports.py.

Definition at line 74 of file ports.py.

Definition at line 245 of file ports.py.

Definition at line 74 of file ports.py.

Definition at line 74 of file ports.py.

Definition at line 245 of file ports.py.

Reimplemented in rtctree.ports.DataPort.

Definition at line 97 of file ports.py.


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


rtctree
Author(s): Geoffrey Biggs
autogenerated on Wed Aug 26 2015 16:13:08