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
public abstract static class SpallocAPI.CreateDescriptor extends Object
Describes what sort of request to create a job this is.
-
Field Summary
Fields Modifier and Type Field Description @javax.validation.constraints.PositiveOrZero(message="maxDeadBoards must not be negative") int
maxDead
The maximum number of dead boards tolerated in the allocation. -
Method Summary
Modifier and Type Method Description abstract int
getArea()
Get the area.<T> T
visit(SpallocAPI.CreateVisitor<T> visitor)
Apply a visitor to this descriptor.
-
Field Details
-
maxDead
@PositiveOrZero(message="maxDeadBoards must not be negative") public final @javax.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
-
visit
Apply 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.
-
getArea
public abstract int getArea()Get the area. The area is the number of boards required.- Returns:
- The number of boards requested by the job.
-