# 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.model.resources import ResourceContainer
from .machine_vertex import MachineVertex
from pacman.model.graphs import (
from pacman.model.constraints.placer_constraints import ChipAndCoreConstraint

""" A virtual vertex on a SpiNNaker Link.
"""

__slots__ = [
"_virtual_chip_x",
"_virtual_chip_y"]

def __init__(
constraints=None, app_vertex=None, vertex_slice=None):
super().__init__(
label=label, constraints=constraints, app_vertex=app_vertex,
vertex_slice=vertex_slice)
self._virtual_chip_x = None
self._virtual_chip_y = None

@property
@overrides(MachineVertex.resources_required)
def resources_required(self):
return ResourceContainer()

@property

@property

@property
@overrides(AbstractVirtual.virtual_chip_x)
def virtual_chip_x(self):
return self._virtual_chip_x

@property
@overrides(AbstractVirtual.virtual_chip_y)
def virtual_chip_y(self):
return self._virtual_chip_y

[docs]    @overrides(AbstractVirtual.set_virtual_chip_coordinates)
def set_virtual_chip_coordinates(self, virtual_chip_x, virtual_chip_y):
if virtual_chip_x is not None and virtual_chip_y is not None:
self._virtual_chip_x = virtual_chip_x
self._virtual_chip_y = virtual_chip_y