Class AdminController.BlacklistData

java.lang.Object
uk.ac.manchester.spinnaker.alloc.admin.AdminController.BlacklistData
Enclosing interface:
AdminController

public static class AdminController.BlacklistData
extends Object
The model of a blacklist used by the administration web interface.
  • Constructor Details

  • Method Details

    • getBoardId

      @Positive public @javax.validation.constraints.Positive int getBoardId()
      Returns:
      The board ID.
    • setBoardId

      public void setBoardId​(int boardId)
      Parameters:
      boardId - The board ID.
    • getBmpId

      @Positive public @javax.validation.constraints.Positive int getBmpId()
      Returns:
      The BMP ID.
    • setBmpId

      public void setBmpId​(int bmpId)
      Parameters:
      bmpId - The BMP ID.
    • getBlacklist

      public String getBlacklist()
      Returns:
      The text of the blacklist, if present.
    • setBlacklist

      public void setBlacklist​(String blacklist)
      Parameters:
      blacklist - The text of the blacklist.
    • getParsedBlacklist

      public Blacklist getParsedBlacklist()
      Returns:
      The parsed blacklist.
      Throws:
      NullPointerException - If no blacklist data is present.
      IllegalArgumentException - If the string is invalid.
    • isPresent

      public boolean isPresent()
      Returns:
      Whether there is blacklist data present.
    • setPresent

      public void setPresent​(boolean present)
      Parameters:
      present - Whether there is blacklist data present.
    • isSynched

      public boolean isSynched()
      Returns:
      Whether the blacklist data is believed to be the same as the data on the board.
    • setSynched

      public void setSynched​(boolean synched)
      Parameters:
      synched - Whether the blacklist data is believed to be the same as the data on the board.