def get_port_at(self, tile_id, direction):
for port in self.ports:<EOL><INDENT>if port.tile_id == tile_id and port.direction == direction:<EOL><INDENT>return port<EOL><DEDENT><DEDENT>port = Port(tile_id, direction, PortType.none)<EOL>self.ports.append(port)<EOL>return port<EOL>
If no port is found, a new none port is made and added to self.ports.

Returns the port.

:param tile_id:
:param direction:
:return: Port