Source code for spynnaker.pyNN.spynnaker_simulator_interface

# Copyright (c) 2017-2019 The University of Manchester
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

from six import add_metaclass
from spinn_utilities.abstract_base import (
    AbstractBase, abstractproperty, abstractmethod)
from spinn_front_end_common.utilities import SimulatorInterface


[docs]@add_metaclass(AbstractBase) class SpynnakerSimulatorInterface(SimulatorInterface): __slots__ = () # Used at common level but depends on PyNN so individual implementations
[docs] @abstractmethod def get_distribution_to_stats(self): pass
# Implemented in FEC but only used by sPyNNaker
[docs] @abstractmethod def get_current_time(self): pass
# Used at common level but depends on PyNN so individual implementations
[docs] @abstractmethod def get_random_distribution(self): pass
# Used at common level but depends on PyNN so individual implementations
[docs] @abstractmethod def get_pynn_NumpyRNG(self): pass
# declared in common and used in common @abstractproperty def has_reset_last(self): pass # Used at common level but depends on PyNN so individual implementations
[docs] @abstractmethod def is_a_pynn_random(self, thing): pass
# declared in FEC common and used in 7 and 8 @abstractproperty def max_delay(self): pass # declared in FEC common and used in 7 and 8 @abstractproperty def min_delay(self): pass # declared in 7 and 8 and used in 7 and 8 (could be moved up)
[docs] @abstractmethod def reset(self, annotations=None): pass
# declared in 7 and 8 and used in 7 and 8 (could be moved up)
[docs] @abstractmethod def set_number_of_neurons_per_core(self, neuron_type, max_permitted): pass