Source code for spinn_front_end_common.abstract_models.abstract_machine_allocation_controller
from six import add_metaclass
from spinn_utilities.abstract_base import AbstractBase, abstractmethod
[docs]@add_metaclass(AbstractBase)
class AbstractMachineAllocationController(object):
""" An object that controls the allocation of a machine
"""
__slots__ = ()
[docs] @abstractmethod
def extend_allocation(self, new_total_run_time):
""" Extend the allocation of the machine from the original\
run time
:param new_total_run_time: The total run time that is now required\
starting from when the machine was first allocated
"""
[docs] @abstractmethod
def close(self):
""" Indicate that the use of the machine is complete
"""