Class SpallocAPI.CreateDescriptor
java.lang.Object
uk.ac.manchester.spinnaker.alloc.allocator.SpallocAPI.CreateDescriptor
- Direct Known Subclasses:
- SpallocAPI.CreateDimensions,- SpallocAPI.CreateNumBoards,- SpallocAPI.HasBoardCoords
- Enclosing interface:
- SpallocAPI
Describes what sort of request to create a job this is.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionfinal @jakarta.validation.constraints.PositiveOrZero(message="maxDeadBoards must not be negative") intThe maximum number of dead boards tolerated in the allocation.
- 
Method SummaryModifier and TypeMethodDescriptionabstract intgetArea()Get the area.final <T> Tvisit(SpallocAPI.CreateVisitor<T> visitor) Apply a visitor to this descriptor.
- 
Field Details- 
maxDead@PositiveOrZero(message="maxDeadBoards must not be negative") public final @jakarta.validation.constraints.PositiveOrZero(message="maxDeadBoards must not be negative") int maxDeadThe maximum number of dead boards tolerated in the allocation. Ignored when asking for a single board.
 
- 
- 
Method Details- 
visitApply a visitor to this descriptor.- Type Parameters:
- T- The type of the result of the visiting.
- Parameters:
- visitor- The visitor to apply.
- Returns:
- The result computed by the visitor.
 
- 
getAreapublic abstract int getArea()Get the area. The area is the number of boards required.- Returns:
- The number of boards requested by the job.
 
 
-