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 Details

    • getP

      @ValidP @uk.ac.manchester.spinnaker.machine.ValidP int getP()
      Returns:
      The processor coordinate of the core on its chip.
    • onSameCoreAs

      default boolean onSameCoreAs​(HasCoreLocation other)
      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 calling asCoreLocation() 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

      default CoreLocation asCoreLocation()
      Converts (if required) this to a simple X, Y, P tuple.
      Returns:
      A CoreLocation representation of the X, Y, P tuple