ServicePort object.
More...
|
| 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) |
| |
ServicePort object.
Represents a service port of a component, as specified in a
ConnectorProfile.
Definition at line 215 of file ports.py.
| 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.
| def rtsprofile.ports.ServicePort.__str__ |
( |
|
self | ) |
|
| 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 |
|
) |
| |
| 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 |
|
) |
| |
| 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 |
|
) |
| |
| 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 |
|
) |
| |
| rtsprofile.ports.ServicePort._comment |
|
private |
| rtsprofile.ports.ServicePort._name |
|
private |
| rtsprofile.ports.ServicePort._properties |
|
private |
| rtsprofile.ports.ServicePort._visible |
|
private |
| rtsprofile.ports.ServicePort.comment |
| rtsprofile.ports.ServicePort.name |
| rtsprofile.ports.ServicePort.visible |
The documentation for this class was generated from the following file: