Interface HasChipLocation
- All Known Subinterfaces:
HasCoreLocation
- All Known Implementing Classes:
AbstractDataLink, Chip, ChipLocation, CoreLocation, FpgaEnum, FPGALinkData, RegionLocation, SpinnakerLinkData
public interface HasChipLocation
The interface supported by any object that is associated with a chip.
- Author:
- Donal Fellows
-
Method Summary
Modifier and TypeMethodDescriptiondefault ChipLocationConverts (if required) this to a simple X, Y tuple.default HasCoreLocationGet the core of the chip that will be running SC&MP.@ValidX intgetX()@ValidY intgetY()default booleanonSameChipAs(HasChipLocation other) Check if two locations are co-located at the chip level.
-
Method Details
-
getX
-
getY
-
onSameChipAs
Check if two locations are co-located at the chip level. This does not imply that the two are equal (but does imply that the results of callingasChipLocation()on each will produce equal objects).- Parameters:
other- The other location to compare to.- Returns:
- If the two locations have the same X and Y coordinates.
-
getScampCore
Get the core of the chip that will be running SC&MP. This is always core 0 of the chip, as the core that runs SC&MP always maps itself to be virtual core ID 0.- Returns:
- The location of the SC&MP core.
-
asChipLocation
Converts (if required) this to a simple X, Y tuple.- Returns:
- A ChipLocation representation of the X and Y tuple
-