# 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/>.

""" Data object for FPGA links
"""

__slots__ = (
"_fpga_id"
)

# pylint: disable=too-many-arguments
super().__init__(
self._fpga_id = fpga_id

@property
""" The ID of the link out of the SpiNNaker FPGA.
"""

@property
def fpga_id(self):
""" The ID of the SpiNNaker FPGA.
"""
return self._fpga_id

def __eq__(self, other):
return False
return (self._fpga_id == other.fpga_id and
self.connected_chip_x == other.connected_chip_x and
self.connected_chip_y == other.connected_chip_y and