Public Member Functions | Public Attributes | Private Attributes | List of all members
rtsprofile.ports.ServicePort Class Reference

ServicePort object. More...

Inheritance diagram for rtsprofile.ports.ServicePort:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, name='', comment='', visible=True)
 
def __str__ (self)
 
def comment (self)
 
def comment (self, comment)
 
def name (self)
 
def name (self, name)
 
def parse_xml_node (self, node)
 
def parse_yaml (self, y)
 
def properties (self)
 
def properties (self, properties)
 
def save_xml (self, doc, element)
 
def to_dict (self)
 
def visible (self)
 
def visible (self, visible)
 

Public Attributes

 comment
 
 name
 
 visible
 

Private Attributes

 _comment
 
 _name
 
 _properties
 
 _visible
 

Detailed Description

ServicePort object.

Represents a service port of a component, as specified in a
ConnectorProfile.

Definition at line 215 of file ports.py.

Constructor & Destructor Documentation

def rtsprofile.ports.ServicePort.__init__ (   self,
  name = '',
  comment = '',
  visible = True 
)
Constructor.

@param name Name of the port.
@type name str
@param comment A comment about the port.
@type comment str
@param visible If this port is visible in graphical displays.
@type visible bool

Definition at line 221 of file ports.py.

Member Function Documentation

def rtsprofile.ports.ServicePort.__str__ (   self)

Definition at line 243 of file ports.py.

def rtsprofile.ports.ServicePort.comment (   self)
Comment about the service port.

A brief comment about the service port. May or may not be displayed in
other tools. May be empty.

Part of the extended profile.

Definition at line 270 of file ports.py.

def rtsprofile.ports.ServicePort.comment (   self,
  comment 
)

Definition at line 282 of file ports.py.

def rtsprofile.ports.ServicePort.name (   self)
The name of this service port.

This name is used in connector profiles to identify the port.

Definition at line 255 of file ports.py.

def rtsprofile.ports.ServicePort.name (   self,
  name 
)

Definition at line 264 of file ports.py.

def rtsprofile.ports.ServicePort.parse_xml_node (   self,
  node 
)
Parse an xml.dom Node object representing a service port into this
object.

Definition at line 322 of file ports.py.

def rtsprofile.ports.ServicePort.parse_yaml (   self,
  y 
)
Parse a YAML specification of a service port into this object.

Definition at line 342 of file ports.py.

def rtsprofile.ports.ServicePort.properties (   self)
Miscellaneous properties.

Stores key/value pair properties.

Part of the extended profile.

Definition at line 306 of file ports.py.

def rtsprofile.ports.ServicePort.properties (   self,
  properties 
)

Definition at line 317 of file ports.py.

def rtsprofile.ports.ServicePort.save_xml (   self,
  doc,
  element 
)
Save this service port into an xml.dom.Element object.

Definition at line 361 of file ports.py.

def rtsprofile.ports.ServicePort.to_dict (   self)
Save this service port into a dictionary.

Definition at line 375 of file ports.py.

def rtsprofile.ports.ServicePort.visible (   self)
Display the port in graphical tools.

This value controls whether graphical tools will display this port or
not.

Part of the extended profile.

Definition at line 288 of file ports.py.

def rtsprofile.ports.ServicePort.visible (   self,
  visible 
)

Definition at line 300 of file ports.py.

Member Data Documentation

rtsprofile.ports.ServicePort._comment
private

Definition at line 237 of file ports.py.

rtsprofile.ports.ServicePort._name
private

Definition at line 234 of file ports.py.

rtsprofile.ports.ServicePort._properties
private

Definition at line 241 of file ports.py.

rtsprofile.ports.ServicePort._visible
private

Definition at line 240 of file ports.py.

rtsprofile.ports.ServicePort.comment

Definition at line 329 of file ports.py.

rtsprofile.ports.ServicePort.name

Definition at line 328 of file ports.py.

rtsprofile.ports.ServicePort.visible

Definition at line 333 of file ports.py.


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


rtsprofile
Author(s): Geoffrey Biggs
autogenerated on Fri Jun 7 2019 21:52:35