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 SummaryFieldsModifier 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.CreateDescriptormaxDead
- 
Constructor SummaryConstructorsConstructorDescriptionCreateDimensions(int width, int height, Integer maxDeadBoards) Request a rectangle of boards.
- 
Method SummaryMethods inherited from class uk.ac.manchester.spinnaker.alloc.allocator.SpallocAPI.CreateDescriptorvisit
- 
Field Details- 
width@ValidTriadWidth public final @uk.ac.manchester.spinnaker.machine.board.ValidTriadWidth int widthWidth requested, in triads.
- 
height@ValidTriadHeight public final @uk.ac.manchester.spinnaker.machine.board.ValidTriadHeight int heightHeight requested, in triads.
 
- 
- 
Constructor Details- 
CreateDimensionsRequest 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- 
getAreapublic int getArea()Description copied from class:SpallocAPI.CreateDescriptorGet the area. The area is the number of boards required.- Specified by:
- getAreain class- SpallocAPI.CreateDescriptor
- Returns:
- The number of boards requested by the job.
 
 
-