def termrep(terminals):
    """
    This function takes a terminal collection (represented by a tuple of ints) and returns a representation that can be
    cat to a bus name in order to form a full bus-terminal qualification according to the odsswr syntax.

    >>> termrep(1,3,2)
    '.1.3.2'

    :param terminals: tuple of ints
    :type terminals: tuple
    :rtype: string
    """
    if terminals is None:
        return ''
    else:
        s = '.'
        try:
            for t in terminals:
                s += str(t) + '.'
            return s[0:-1]  # shaves final dot
        except TypeError:
            return '.' + str(terminals)