Source code for pacman.model.constraints.partitioner_constraints.max_vertex_atoms_constraint

# pacman import
from .abstract_partitioner_constraint import AbstractPartitionerConstraint


[docs]class MaxVertexAtomsConstraint(AbstractPartitionerConstraint): """ A constraint which limits the number of atoms on each division of a\ vertex """ __slots__ = [ # The maximum number of atoms to split the application vertex into "_size" ] def __init__(self, size): """ :param size: The maximum number of atoms to split the vertex into :type size: int """ self._size = size @property def size(self): """ The maximum number of atoms to split the vertex into :rtype: int """ return self._size def __repr__(self): return "MaxVertexAtomsConstraint(size={})".format(self._size)