Bases: object
Represents a group of CoreSubsets, with a maximum of one per chip
Parameters: | core_subsets (iterable of spinnman.model.core_subset.CoreSubset) – An iterable of cores for each desired chip |
---|---|
Raises spinnman.exceptions.SpinnmanInvalidParameterException: | |
If there is more than one subset with the same core x and y coordinates |
Attributes
core_subsets | The one-per-chip subsets |
Methods
add_core_subset(core_subset) | Add a core subset to the set |
add_processor(x, y, processor_id) | Add a processor on a given chip to the set |
is_chip(x, y) | Determine if the chip with coordinates (x, y) is in the subset |
is_core(x, y, processor_id) | Determine if there is a chip with coordinates (x, y) in the subset, which has a core with the given id in the subset |
Detailed Methods
Add a core subset to the set
Parameters: | core_subset (spinnman.model.core_subset.CoreSubset) – The core subset to add |
---|---|
Returns: | Nothing is returned |
Return type: | None |
Raises spinnman.exceptions.SpinnmanInvalidParameterException: | |
If there is already a subset with the same core x and y coordinates |
Add a processor on a given chip to the set
Parameters: |
|
---|---|
Returns: | Nothing is returned |
Return type: | None |
Raises spinnman.exceptions.SpinnmanInvalidParameterException: | |
If there is already a processor on the given chip with the same id |
Determine if the chip with coordinates (x, y) is in the subset
Parameters: |
|
---|---|
Returns: | True if the chip with coordinates (x, y) is in the subset |
Return type: | bool |
Determine if there is a chip with coordinates (x, y) in the subset, which has a core with the given id in the subset
Parameters: |
|
---|---|
Returns: | True if there is a chip with coordinates (x, y) in the subset, which has a core with the given id in the subset |