def METHOD_NAME(self, port_number, nio):
    """
    Adds a NIO to a port on this adapter.
    :param port_number: port number (integer)
    :param nio: NIO instance
    """
    self._ports[port_number] = nio