Class BoardRecord

java.lang.Object
uk.ac.manchester.spinnaker.alloc.model.BoardRecord

public class BoardRecord
extends Object
Model of a board, for configuration purposes.
Author:
Donal Fellows
  • Constructor Details

  • Method Details

    • getId

      public Integer getId()
      Returns:
      The board ID, if known.
    • setId

      public void setId​(Integer id)
      Parameters:
      id - The board ID.
    • getBmpId

      public Integer getBmpId()
      Returns:
      The BMP ID.
    • setBmpId

      public void setBmpId​(Integer bmpId)
      Parameters:
      bmpId - The BMP ID.
    • isIdPresent

      public boolean isIdPresent()
      Returns:
      Whether we have an ID.
    • getMachineName

      public String getMachineName()
      Returns:
      The machine name.
    • setMachineName

      public void setMachineName​(String machineName)
      Parameters:
      machineName - The machine name.
    • getX

      public Integer getX()
      Returns:
      The board X coordinate, if known.
    • setX

      public void setX​(Integer x)
      Parameters:
      x - The board X coordinate.
    • getY

      public Integer getY()
      Returns:
      The board Y coordinate, if known.
    • setY

      public void setY​(Integer y)
      Parameters:
      y - The board Y coordinate.
    • getZ

      public Integer getZ()
      Returns:
      The board Z coordinate, if known.
    • setZ

      public void setZ​(Integer z)
      Parameters:
      z - The board Z coordinate.
    • isTriadCoordPresent

      public boolean isTriadCoordPresent()
      Returns:
      Whether we have a full set of triad coordinates.
    • getCabinet

      public Integer getCabinet()
      Returns:
      The cabinet number, if known.
    • setCabinet

      public void setCabinet​(Integer cabinet)
      Parameters:
      cabinet - The cabinet number.
    • getFrame

      public Integer getFrame()
      Returns:
      The frame number, if known.
    • setFrame

      public void setFrame​(Integer frame)
      Parameters:
      frame - The frame number.
    • getBoard

      public Integer getBoard()
      Returns:
      The board number, if known.
    • setBoard

      public void setBoard​(Integer board)
      Parameters:
      board - The board number.
    • isPhysicalCoordPresent

      public boolean isPhysicalCoordPresent()
      Returns:
      Whether we have a full set of physical coordinates.
    • getIpAddress

      public String getIpAddress()
      Returns:
      The board's IP address, if known.
    • setIpAddress

      public void setIpAddress​(String ipAddress)
      Parameters:
      ipAddress - The board's IP address.
    • isAddressPresent

      public boolean isAddressPresent()
      Returns:
      Whether we have an IP address.
    • isEnabled

      public boolean isEnabled()
      Returns:
      Whether the board is enabled.
    • isEnabledDefined

      public boolean isEnabledDefined()
      Returns:
      Whether the board enabled state is defined.
    • setEnabled

      public void setEnabled​(Boolean enabled)
      Parameters:
      enabled - Whether the board is enabled.
    • getJobId

      public Integer getJobId()
      Returns:
      The ID of the job allocated to the board, if any.
    • isJobAllocated

      public boolean isJobAllocated()
      Returns:
      Whether a job is allocated to the board.
    • setJobId

      public void setJobId​(Integer jobId)
      Parameters:
      jobId - The ID of the job allocated to the board.
    • getLastPowerOn

      public Instant getLastPowerOn()
      Returns:
      When the board was last powered on, if known.
    • setLastPowerOn

      public void setLastPowerOn​(Instant lastPowerOn)
      Parameters:
      lastPowerOn - When the board was last powered on.
    • getLastPowerOff

      public Instant getLastPowerOff()
      Returns:
      When the board was last powered off, if known.
    • setLastPowerOff

      public void setLastPowerOff​(Instant lastPowerOff)
      Parameters:
      lastPowerOff - When the board was last powered off.
    • getReports

      public List<BoardIssueReport> getReports()
      Returns:
      The reports associated with this board. The list is not modifiable.
    • setReports

      public void setReports​(List<BoardIssueReport> reports)
      Parameters:
      reports - The reports associated with this board.
    • isPowered

      public boolean isPowered()
      Returns:
      Whether this board is powered on.
    • setPowered

      public void setPowered​(boolean power)
      Parameters:
      power - Whether this board is powered on.
    • getBmpSerial

      public String getBmpSerial()
      Returns:
      The BMP serial number, if known.
    • setBmpSerial

      public void setBmpSerial​(String bmpSerial)
      Parameters:
      bmpSerial - The BMP serial number.
    • getPhysicalSerial

      public String getPhysicalSerial()
      Returns:
      The physical board serial number, if known.
    • setPhysicalSerial

      public void setPhysicalSerial​(String physicalSerial)
      Parameters:
      physicalSerial - The physical board serial number.