Class MachineDimensions

java.lang.Object
uk.ac.manchester.spinnaker.machine.MachineDimensions

@Immutable
public final class MachineDimensions
extends Object
Represents the size of a machine in chips.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    @uk.ac.manchester.spinnaker.machine.ValidMachineHeight int height
    The height of the machine in chips.
    @uk.ac.manchester.spinnaker.machine.ValidMachineWidth int width
    The width of the machine in chips.
  • Constructor Summary

    Constructors 
    Constructor Description
    MachineDimensions​(int width, int height)
    Create a new instance.
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(Object o)  
    int hashCode()  
    String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • width

      @ValidMachineWidth public final @uk.ac.manchester.spinnaker.machine.ValidMachineWidth int width
      The width of the machine in chips.
    • height

      @ValidMachineHeight public final @uk.ac.manchester.spinnaker.machine.ValidMachineHeight int height
      The height of the machine in chips.
  • Constructor Details

    • MachineDimensions

      public MachineDimensions​(int width, int height)
      Create a new instance.
      Parameters:
      width - The width of the machine, in chips.
      height - The height of the machine, in chips.
  • Method Details