def get_matching_multiplex_port(self,name):
<EOL>matching_multiplex_ports = [self.__getattribute__(p) for p in self._portnames<EOL>if name.startswith(p)<EOL>and name != p<EOL>and hasattr(self, p)<EOL>and self.__getattribute__(p).is_multiplex<EOL>]<EOL>for port in matching_multiplex_ports:<EOL><INDENT>return port<EOL><DEDENT>return None<EOL>
Given a name, figure out if a multiplex port prefixes this name and return it.  Otherwise return none.