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
A request for a rectangle of boards. This is expressed in boards for
reasons relating to the legacy API.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal @uk.ac.manchester.spinnaker.machine.board.ValidTriadHeight intHeight requested, in triads.final @uk.ac.manchester.spinnaker.machine.board.ValidTriadWidth intWidth requested, in triads.Fields inherited from class uk.ac.manchester.spinnaker.alloc.allocator.SpallocAPI.CreateDescriptor
maxDead -
Constructor Summary
ConstructorsConstructorDescriptionCreateDimensions(int width, int height, Integer maxDeadBoards) Request a rectangle of boards. -
Method Summary
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.CreateDescriptorGet the area. The area is the number of boards required.- Specified by:
getAreain classSpallocAPI.CreateDescriptor- Returns:
- The number of boards requested by the job.
-