def __init__(self, machine, connections):
     AbstractMultiConnectionProcessConnectionSelector.__init__(
         self, connections)
     self._machine = machine
     self._connections = dict()
     self._first_connection = None
     for connection in connections:
         if connection.chip_x == 0 and connection.chip_y == 0:
             self._first_connection = connection
         self._connections[(connection.chip_x,
                            connection.chip_y)] = connection
     if self._first_connection is None:
         self._first_connection = next(iter(connections))
 def __init__(self, machine, connections):
     AbstractMultiConnectionProcessConnectionSelector.__init__(
         self, connections)
     self._machine = machine
     self._connections = dict()
     self._first_connection_index = None
     index = 0
     for connection in connections:
         if connection.chip_x == 0 and connection.chip_y == 0:
             self._first_connection_index = index
         self._connections[
             (connection.chip_x, connection.chip_y)] = index
         index += 1
     if self._first_connection_index is None:
         self._first_connection_index = 0
 def __init__(self, connections):
     AbstractMultiConnectionProcessConnectionSelector.__init__(
         self, connections)
     self._connections = connections
     self._next_connection_index = 0
Example #4
0
 def __init__(self, connections):
     AbstractMultiConnectionProcessConnectionSelector.__init__(
         self, connections)
     self._connections = connections
     self._next_connection_index = 0