Interface HasChipLocation

All Known Subinterfaces:
HasCoreLocation
All Known Implementing Classes:
AbstractDataLink, Chip, ChipInfo, ChipLocation, CoreLocation, CPUInfo, FpgaEnum, FPGALinkData, Gather, IOBuffer, Monitor, Placement, RegionLocation, SDPLocation, SpinnakerLinkData, SpinnakerRequestBuffers, SpinnakerRequestReadData

public interface HasChipLocation
The interface supported by any object that is associated with a chip.
Author:
Donal Fellows
  • Method Summary

    Modifier and Type Method Description
    default ChipLocation asChipLocation()
    Converts (if required) this to a simple X, Y tuple.
    default HasCoreLocation getScampCore()
    Get the core of the chip that will be running SC&MP.
    @uk.ac.manchester.spinnaker.machine.ValidX int getX()  
    @uk.ac.manchester.spinnaker.machine.ValidY int getY()  
    default boolean onSameChipAs​(HasChipLocation other)
    Check if two locations are co-located at the chip level.
  • Method Details

    • getX

      @ValidX @uk.ac.manchester.spinnaker.machine.ValidX int getX()
      Returns:
      The X coordinate of the chip.
    • getY

      @ValidY @uk.ac.manchester.spinnaker.machine.ValidY int getY()
      Returns:
      The Y coordinate of the chip.
    • onSameChipAs

      default boolean onSameChipAs​(HasChipLocation other)
      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 calling asChipLocation() 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

      default HasCoreLocation 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

      default ChipLocation asChipLocation()
      Converts (if required) this to a simple X, Y tuple.
      Returns:
      A ChipLocation representation of the X and Y tuple