Class WhereIs.Builder

java.lang.Object
uk.ac.manchester.spinnaker.spalloc.messages.WhereIs.Builder
Enclosing class:
WhereIs

public static class WhereIs.Builder
extends Object
Builder for WhereIs.
  • Constructor Details

  • Method Details

    • setJobChip

      public void setJobChip​(ChipLocation jobChip)
      Parameters:
      jobChip - The chip location relative to the job's allocation.
    • setJobId

      public void setJobId​(Integer jobId)
      Parameters:
      jobId - The job id.
    • setChip

      public void setChip​(ChipLocation chip)
      Parameters:
      chip - The absolute chip location.
    • setLogical

      public void setLogical​(BoardCoordinates logical)
      Parameters:
      logical - The logical coordinates of the board.
    • setMachine

      public void setMachine​(String machine)
      Parameters:
      machine - The name of the machine.
    • setBoardChip

      public void setBoardChip​(ChipLocation boardChip)
      Parameters:
      boardChip - The chip location relative to its board.
    • setPhysical

      public void setPhysical​(BoardPhysicalCoordinates physical)
      Parameters:
      physical - The physical coordinates of the board.
    • build

      public WhereIs build()
      Build an instance of the immutable WhereIs.
      Returns:
      The instance.