Interface HasCoreLocation
- All Superinterfaces:
HasChipLocation
- All Known Implementing Classes:
CoreLocation
,CPUInfo
,Gather
,IOBuffer
,Monitor
,Placement
,RegionLocation
,SDPLocation
,SpinnakerRequestBuffers
,SpinnakerRequestReadData
public interface HasCoreLocation extends HasChipLocation
The interface supported by any object that is associated with a core.
- Author:
- dkf
-
Method Summary
Modifier and Type Method Description default CoreLocation
asCoreLocation()
Converts (if required) this to a simple X, Y, P tuple.@uk.ac.manchester.spinnaker.machine.ValidP int
getP()
default boolean
onSameCoreAs(HasCoreLocation other)
Check if two locations are co-located at the core level.Methods inherited from interface uk.ac.manchester.spinnaker.machine.HasChipLocation
asChipLocation, getScampCore, getX, getY, onSameChipAs
-
Method Details
-
getP
- Returns:
- The processor coordinate of the core on its chip.
-
onSameCoreAs
Check if two locations are co-located at the core level. This does not imply that the two are equal (but does imply that the results of callingasCoreLocation()
on each will produce equal objects).- Parameters:
other
- The other location to compare to.- Returns:
- If the two locations have the same X, Y and P coordinates.
-
asCoreLocation
Converts (if required) this to a simple X, Y, P tuple.- Returns:
- A CoreLocation representation of the X, Y, P tuple
-