Class SpallocAPI.CreateDimensions
java.lang.Object
uk.ac.manchester.spinnaker.alloc.allocator.SpallocAPI.CreateDescriptor
uk.ac.manchester.spinnaker.alloc.allocator.SpallocAPI.CreateDimensions
- Enclosing interface:
- SpallocAPI
public static final class SpallocAPI.CreateDimensions extends SpallocAPI.CreateDescriptor
A request for a rectangle of boards. This is expressed in boards for
reasons relating to the legacy API.
- See Also:
V1CompatService
-
Field Summary
Fields Modifier and Type Field Description @uk.ac.manchester.spinnaker.machine.board.ValidTriadHeight int
height
Height requested, in triads.@uk.ac.manchester.spinnaker.machine.board.ValidTriadWidth int
width
Width requested, in triads.Fields inherited from class uk.ac.manchester.spinnaker.alloc.allocator.SpallocAPI.CreateDescriptor
maxDead
-
Constructor Summary
Constructors Constructor Description CreateDimensions(int width, int height, Integer maxDeadBoards)
Request a rectangle of boards. -
Method Summary
Modifier and Type Method Description int
getArea()
Get the area.Methods inherited from class uk.ac.manchester.spinnaker.alloc.allocator.SpallocAPI.CreateDescriptor
visit
-
Field Details
-
width
Width requested, in triads. -
height
@ValidTriadHeight public final @uk.ac.manchester.spinnaker.machine.board.ValidTriadHeight int heightHeight requested, in triads.
-
-
Constructor Details
-
CreateDimensions
Request a rectangle of boards. The service may over-allocate.- Parameters:
width
- The width of rectangle to request, in triads.height
- The height of rectangle to request, in triads.maxDeadBoards
- The number of dead boards that can be tolerated in that rectangle.
-
-
Method Details
-
getArea
public int getArea()Description copied from class:SpallocAPI.CreateDescriptor
Get the area. The area is the number of boards required.- Specified by:
getArea
in classSpallocAPI.CreateDescriptor
- Returns:
- The number of boards requested by the job.
-