Source code for spinn_front_end_common.abstract_models.abstract_provides_incoming_partition_constraints

from six import add_metaclass

from spinn_utilities.abstract_base import AbstractBase, abstractmethod


[docs]@add_metaclass(AbstractBase) class AbstractProvidesIncomingPartitionConstraints(object): """ A vertex that can provide constraints for its incoming edge partitions """ __slots__ = ()
[docs] @abstractmethod def get_incoming_partition_constraints(self, partition): """ Get constraints to be added to the given edge that goes in to\ a vertex of this vertex :param partition: An partition that goes in to this vertex :type partition:\ :py:class:`pacman.utilities.utility_objs.outgoing_partition.OutgoingPartition` :return: A list of constraints :rtype: list of\ :py:class:`pacman.model.constraints.abstract_constraint.AbstractConstraint` """