def channel(self, ack_id):
     if len(self._channel) > ack_id:
         return self._channel[ack_id]
     raise SpinnmanInvalidParameterTypeException(
         "request_id", "integer", "channel ack_id needs to be"
         "comprised between 0 and {0:d}; current value: {1:d}".format(
             len(self._channel) - 1, ack_id))
 def space_read(self, ack_id):
     if len(self._space_read) > ack_id:
         return self._space_read[ack_id]
     raise SpinnmanInvalidParameterTypeException(
         "request_id", "integer", "start address ack_id needs to be"
         "comprised between 0 and {0:d}; current value: {1:d}".format(
             len(self._space_read) - 1, ack_id))
예제 #3
0
 def space_to_be_read(self, request_id):
     if len(self._space_to_be_read) > request_id:
         return self._space_to_be_read[request_id]
     raise SpinnmanInvalidParameterTypeException(
         "request_id", "integer", "space to be read request needs to be"
         "comprised between 0 and {0:d}; current value: {1:d}".format(
             len(self._space_to_be_read) - 1, request_id))
예제 #4
0
 def start_address(self, request_id):
     if len(self._start_address) > request_id:
         return self._start_address[request_id]
     raise SpinnmanInvalidParameterTypeException(
         "request_id", "integer", "start address request needs to be"
         "comprised between 0 and {0:d}; current value: {1:d}".format(
             len(self._start_address) - 1, request_id))
예제 #5
0
 def region_id(self, request_id):
     if len(self._region_id) > request_id:
         return self._region_id[request_id]
     raise SpinnmanInvalidParameterTypeException(
         "request_id", "integer", "region ID request needs to be"
         "comprised between 0 and {0:d}; current value: {1:d}".format(
             len(self._region_id) - 1, request_id))
 def channel(self, request_id):
     if len(self._channel) > request_id:
         return self._channel[request_id]
     else:
         SpinnmanInvalidParameterTypeException(
             "request_id", "integer", "channel request needs to be"
             "comprised between 0 and {0:d}; current value: "
             "{1:d}".format(len(self._channel) - 1, request_id))
예제 #7
0
 def region_id(self, ack_id):
     if len(self._region_id) > ack_id:
         return self._region_id[ack_id]
     else:
         SpinnmanInvalidParameterTypeException(
             "request_id", "integer", "region id ack_id needs to be"
             "comprised between 0 and {0:d}; current value: "
             "{1:d}".format(len(self._region_id) - 1, ack_id))