Class MachineBean

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

public class MachineBean extends Object
Used to build a Machine from JSON.
Author:
Christian-B
  • Constructor Details

    • MachineBean

      public MachineBean(int height, int width, ChipLocation root, ChipResources ethernetResources, ChipResources standardResources, List<ChipBean> chips)
      Make an instance.
      Parameters:
      height - The height of the Machine in Chips
      width - The width of the Machine in Chips
      root - The Root Chip. (Typically 0,0)
      ethernetResources - The resource values shared by all chips that have an ip_address, expect when overwritten by the Chip itself.
      standardResources - The resource values shared by all chips that do not have an ip_address, expect when overwritten by the Chip itself.
      chips - Beans for each Chips on the machine.
  • Method Details

    • getMachineDimensions

      public MachineDimensions getMachineDimensions()
      Returns:
      The dimensions of the machine.
    • getRoot

      public ChipLocation getRoot()
      Returns:
      The root chip of the machine.
    • getEthernetResources

      public ChipResources getEthernetResources()
      Returns:
      the default resources of ethernet-enabled chips
    • getStandardResources

      public ChipResources getStandardResources()
      Returns:
      the default resources of chips that are not ethernet-enabled
    • getChips

      public List<ChipBean> getChips()
      Returns:
      the chips
    • toString

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

      public String describe()
      Longer String representation over several lines.
      Returns:
      A description of the machine and its details.