Class ChipLocation

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

@Immutable public final class ChipLocation extends Object implements HasChipLocation, Comparable<ChipLocation>, Serializable
The location of a Chip as an X and Y tuple.

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

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

    • ZERO_ZERO

      public static final ChipLocation ZERO_ZERO
      The location (0,0), which is in the bottom/left corner and typically the Ethernet-enabled chip for the lead board of an allocation. It is also typically the boot board of an allocation.
    • ONE_ZERO

      public static final ChipLocation ONE_ZERO
      The location (1,0), which is the one to the east/right of the bottom/left corner.

      This location has special meaning on a 4 chip board.

  • Constructor Details

    • ChipLocation

      public ChipLocation(int x, int y)
      Create the location of a chip on a SpiNNaker machine.
      Parameters:
      x - The X coordinate
      y - The Y coordinate
      Throws:
      IllegalArgumentException - Thrown is either x or y is negative or too big.
  • Method Details