def action_componentclass(self, component, namespace): for src, sink in component.portconnections: full_src = NamespaceAddress.concat(namespace, src) full_sink = NamespaceAddress.concat(namespace, sink) # print 'Adding Port:',full_src # print 'Adding Port:',full_sink self.portconnections.append((full_src, full_sink))
def _action_port(self, port, namespace): port_address = NamespaceAddress.concat(namespace, port.name) if port_address in self.ports: raise NineMLRuntimeError( 'Duplicated Name for port found: %s' % port_address) self.ports[port_address] = port