Class CoreLocation

java.lang.Object
uk.ac.manchester.spinnaker.machine.CoreLocation
All Implemented Interfaces:
Serializable, Comparable<CoreLocation>, HasChipLocation, HasCoreLocation

@Immutable public final class CoreLocation extends Object implements HasCoreLocation, Comparable<CoreLocation>, Serializable
The location of a Processor on a Chip as an X, Y, P tuple.

This class is final as it is used a key in maps.

Author:
Alan Stokes, Donal Fellows
See Also:
  • Constructor Details

    • CoreLocation

      public CoreLocation(int x, int y, int p)
      Create the location of a core on a SpiNNaker machine.
      Parameters:
      x - The X coordinate, in range 0..255
      y - The Y coordinate, in range 0..255
      p - The P coordinate, in range 0..17
    • CoreLocation

      public CoreLocation(HasChipLocation chip, int p)
      Create the location of a core on a SpiNNaker machine.
      Parameters:
      chip - The X and Y coordinate, in range 0..255
      p - The P coordinate, in range 0..17
  • Method Details