@param root: An XML root element. @type root: L{Element} @param definitions: A definitions object. @type definitions: L{Definitions}
(self, root, definitions)
| 821 | """ |
| 822 | |
| 823 | def __init__(self, root, definitions): |
| 824 | """ |
| 825 | @param root: An XML root element. |
| 826 | @type root: L{Element} |
| 827 | @param definitions: A definitions object. |
| 828 | @type definitions: L{Definitions} |
| 829 | """ |
| 830 | NamedObject.__init__(self, root, definitions) |
| 831 | self.ports = [] |
| 832 | for p in root.getChildren('port'): |
| 833 | port = Port(p, definitions, self) |
| 834 | self.ports.append(port) |
| 835 | |
| 836 | def port(self, name): |
| 837 | """ |
nothing calls this directly
no test coverage detected