def __init__(self, board_address, tag, port): """ :param board_address: A fixed board address required for the tag, or\ None if any address is OK :type board_address: str :param port: The target port of the tag :type port: int :param tag: A fixed tag id to assign, or None if any tag is OK :type tag: int """ AbstractPlacerConstraint.__init__(self, "tag allocator constraint") self._board_address = board_address self._tag = tag self._port = port
def __init__(self, x, y): """ :param x: the x-coordinate of the chip :type x: int :param y: the y-coordinate of the chip :type y: int :raise None: does not raise any known exceptions """ AbstractPlacerConstraint.__init__( self, label="placer radial placement from chip and core " "constraint at coords {},{}".format(x, y) ) self._x = x self._y = y
def __init__(self, x, y): """ :param x: the x-coordinate of the chip :type x: int :param y: the y-coordinate of the chip :type y: int :raise None: does not raise any known exceptions """ AbstractPlacerConstraint.__init__( self, label="placer radial placement from chip and core " "constraint at coords {},{}".format(x, y)) self._x = x self._y = y
def __init__(self, x, y, p=None): """ :param x: the x-coordinate of the chip :type x: int :param y: the y-coordinate of the chip :type y: int :param p: the processor (if any) of the chip :type p: int :raise None: does not raise any known exceptions """ AbstractPlacerConstraint.__init__( self, label="placer chip and core constraint at coords " "{},{},{}".format(x, y, p)) self._x = x self._y = y self._p = p