# Source code for spynnaker.pyNN.utilities.fake_HBP_Portal_machine_provider

# 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 spynnaker.pyNN.exceptions import InvalidParameterType

[docs]class FakeHBPPortalMachineProvider(object):
__slots__ = ["__bmp_details", "__height", "__ip_addresses", "__width"]

def __init__(self, n_boards, config):
self.__bmp_details = config.get("Machine", "bmp_names")
self.__width = 8
self.__height = 8
if n_boards != 1:
raise InvalidParameterType("Not enough machine size")

[docs]    def create(self):
return

return

[docs]    def get_machine_info(self):