@staticmethod
def _get_source_and_target_channels(channel_one, channel_two,
    rebalance_direction):
    """
        Determines what the sending and receiving channel ids are.

        :param channel_one: first channel
        :type channel_one: int

        :param channel_two: second channel
        :type channel_two: int

        :param rebalance_direction: positive, if receiving, negative if sending
        :type rebalance_direction: float

        :return: sending and receiving channel
        :rtype: (int, int)
        """
    if rebalance_direction < 0:
        source = channel_one
        target = channel_two
    else:
        source = channel_two
        target = channel_one
    return source, target
