# Copyright (c) 2017-2019 The University of Manchester
#
# This program is free software: you can redistribute it and/or modify
# 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 spinn_utilities.overrides import overrides
from pacman.executor.injection_decorator import inject, supports_injection
from spynnaker.pyNN.utilities.constants import SPIKE_PARTITION_ID
from spynnaker.pyNN.external_devices_models.push_bot import (

[docs]@supports_injection
__slots__ = ["__new_key_command"]

default_parameters = {'label': None, 'board_address': None}

def __init__(
label=default_parameters['label']):
"""
:param protocol:
:param resolution:
:type resolution:
~spynnaker.pyNN.external_devices_models.push_bot.parameters.PushBotRetinaResolution
:param label:
"""
super().__init__(protocol, resolution)
n_atoms=resolution.value.n_neurons,

# stores for the injection aspects
self.__new_key_command = None

[docs]    @inject("MemoryRoutingInfos")
def routing_info(self, routing_info):
key = routing_info.get_first_key_from_pre_vertex(
list(self.machine_vertices)[0], SPIKE_PARTITION_ID)

@property