pacman.model.constraints.placer_constraints package

Module contents

class pacman.model.constraints.placer_constraints.AbstractPlacerConstraint

Bases: pacman.model.constraints.AbstractConstraint

A constraint on placement

class pacman.model.constraints.placer_constraints.BoardConstraint(board_address)

Bases: pacman.model.constraints.placer_constraints.AbstractPlacerConstraint

A constraint on the board on which a placement is made.

Parameters:board_address (str) – The IP address of the Ethernet of the board to be used
board_address

The board of the constraint

Return type:str
class pacman.model.constraints.placer_constraints.ChipAndCoreConstraint(x, y, p=None)

Bases: pacman.model.constraints.placer_constraints.AbstractPlacerConstraint

A constraint to place a vertex on a specific chip and, optionally, a specific core on that chip.

Parameters:
  • x (int) – the x-coordinate of the chip
  • y (int) – the y-coordinate of the chip
  • p (int or None) – the processor (if any) of the chip
location
The location as a dictionary with three keys: “x”, “y
and “p
Return type:dict(str, int)
p

The processor on the chip, or None if that is not constrained

Return type:int or None
x

The x-coordinate of the chip

Return type:int
y

The y-coordinate of the chip

Return type:int
class pacman.model.constraints.placer_constraints.RadialPlacementFromChipConstraint(x, y)

Bases: pacman.model.constraints.placer_constraints.AbstractPlacerConstraint

A constraint that attempts to place a vertex as close to a chip as possible (including on it).

Parameters:
  • x (int) – the x-coordinate of the chip
  • y (int) – the y-coordinate of the chip
x
Return type:int
y
Return type:int
class pacman.model.constraints.placer_constraints.SameChipAsConstraint(vertex)

Bases: pacman.model.constraints.placer_constraints.AbstractPlacerConstraint

Indicates that a vertex should be placed on the same chip as another vertex.

Parameters:vertex (AbstractVertex) – The vertex to place on the same chip
vertex

The vertex to place on the same chip

Return type:AbstractVertex