Class ChipDetails

java.lang.Object
uk.ac.manchester.spinnaker.machine.bean.ChipDetails

public class ChipDetails extends Object
The details of a Chip.
Author:
Christian-B
  • Field Details

    • cores

      @PositiveOrZero @Max(18L) public final @jakarta.validation.constraints.PositiveOrZero,@jakarta.validation.constraints.Max(18L) int cores
      Total number of working core on this chip.
    • ethernet

      @Valid public final @Valid ChipLocation ethernet
      Location of the nearest Ethernet-enabled chip.
  • Constructor Details

    • ChipDetails

      public ChipDetails(int cores, ChipLocation ethernet, String ipAddress, List<LinkBean> links, List<Integer> deadLinks) throws UnknownHostException
      Make an instance.
      Parameters:
      cores - Total number of cores working cores including monitors.
      ipAddress - the IP address to set
      ethernet - Location of the nearest Ethernet-enabled chip.
      links - Description of link information (only present when the links are not a complete default set).
      deadLinks - the dead links of the chip
      Throws:
      UnknownHostException - If the ipAddress can not be converted to an InetAddress
  • Method Details

    • getCores

      public int getCores()
      Returns:
      the number of cores.
    • getEthernet

      public ChipLocation getEthernet()
      Returns:
      the location of the board's Ethernet-enabled chip
    • getIpAddress

      public InetAddress getIpAddress()
      Returns:
      the IP address
    • getDeadDirections

      public Set<Direction> getDeadDirections()
      Returns:
      the dead links of the chip
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getLinkDestination

      public ChipLocation getLinkDestination(Direction direction, HasChipLocation source, Machine machine)
      Gets where a link is really going.
      Parameters:
      direction - Which direction the link is going in.
      source - Where the link is coming from.
      machine - The machine on which the link exists.
      Returns:
      The location of the destination of the link.