Class ChipResources

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

public class ChipResources
extends Object
Bean to represent values on a Chip that are typically the same on all Chips.
Author:
Christian-B
  • Field Details

    • NOT_SET

      public static final int NOT_SET
      Symbolic value to specify no specific value has been set.

      This allows the value 0 to be declared as specifically set.

      See Also:
      Constant Field Values
  • Constructor Details

    • ChipResources

      public ChipResources()
      Default constructor which sets all values to not set.
  • Method Details

    • addDefaults

      public void addDefaults​(ChipResources defaults)
      Adds the default values if and only if no value had been specifically set. If a value is not set in both this and the defaults it will remain as not set.
      Parameters:
      defaults - Another resources whose values should replace those which have not been set.
    • getCores

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

      public int getMonitors()
      Returns:
      the monitors
    • getSdram

      public int getSdram()
      Returns:
      the SDRAM capacity
    • getTags

      public List<Integer> getTags()
      Returns:
      the tags
    • getRouterEntries

      public int getRouterEntries()
      Returns:
      the number of router entries
    • toString

      public String toString()
      Overrides:
      toString in class Object