Interface SpallocAPI.Machine
- All Superinterfaces:
SpallocAPI.Waitable
- Enclosing interface:
SpallocAPI
Describes a particular machine known to the allocator. Must implement
equality by ID or name (both are unique).
- Author:
- Donal Fellows
-
Method Summary
Modifier and TypeMethodDescriptiongetBMPAddress(@Valid uk.ac.manchester.spinnaker.machine.board.BMPCoords bmp) Get the address of a particular BMP of a machine.getBoardByChip(@Valid @NotNull uk.ac.manchester.spinnaker.machine.HasChipLocation chipLocation) Get a description of the location of a board given the global coordinates of a chip on it.getBoardByIPAddress(@IPAddress String address) Get a description of the location of a board given the address of its ethernet chip.getBoardByLogicalCoords(@Valid @NotNull uk.ac.manchester.spinnaker.machine.board.TriadCoords coords) Get a description of the location of a board given the triad coordinates of the board.getBoardByPhysicalCoords(@Valid @NotNull uk.ac.manchester.spinnaker.machine.board.PhysicalCoords coords) Get a description of the location of a board given the physical coordinates of the board.getBoardNumbers(@Valid uk.ac.manchester.spinnaker.machine.board.BMPCoords bmp) Get the board numbers managed by a particular BMP of a machine.The IDs of boards marked as dead or otherwise taken out of service.The links within the machine that are marked as dead or otherwise taken out of service.intintgetId()getName()getTags()intgetWidth()booleanbooleanbooleanMethods inherited from interface SpallocAPI.Waitable
waitForChange
-
Method Details
-
getId
int getId()- Returns:
- The ID of the machine. Unique.
-
getName
String getName()- Returns:
- The name of the machine. Unique.
-
getTags
-
getWidth
int getWidth()- Returns:
- The width of the machine.
-
getHeight
int getHeight()- Returns:
- The height of the machine.
-
isHorizonallyWrapped
boolean isHorizonallyWrapped()- Returns:
- Whether the machine wraps in the horizontal direction.
-
isVerticallyWrapped
boolean isVerticallyWrapped()- Returns:
- Whether the machine wraps in the vertical direction.
-
isInService
boolean isInService()- Returns:
- Whether this machine is currently in service.
-
getDeadBoards
List<BoardCoords> getDeadBoards()The IDs of boards marked as dead or otherwise taken out of service.- Returns:
- A list of boards. Not modifiable.
-
getDownLinks
-
getBoardByChip
Optional<SpallocAPI.BoardLocation> getBoardByChip(@Valid @NotNull @Valid @NotNull uk.ac.manchester.spinnaker.machine.HasChipLocation chipLocation) Get a description of the location of a board given the global coordinates of a chip on it.- Parameters:
chipLocation- Global chip coordinates.- Returns:
- Board location description
-
getBoardByPhysicalCoords
Optional<SpallocAPI.BoardLocation> getBoardByPhysicalCoords(@Valid @NotNull @Valid @NotNull uk.ac.manchester.spinnaker.machine.board.PhysicalCoords coords) Get a description of the location of a board given the physical coordinates of the board.- Parameters:
coords- PhysicalCoordinates- Returns:
- Board location description
-
getBoardByLogicalCoords
Optional<SpallocAPI.BoardLocation> getBoardByLogicalCoords(@Valid @NotNull @Valid @NotNull uk.ac.manchester.spinnaker.machine.board.TriadCoords coords) Get a description of the location of a board given the triad coordinates of the board.- Parameters:
coords- Triad coordinates.- Returns:
- Board location description
-
getBoardByIPAddress
Get a description of the location of a board given the address of its ethernet chip.- Parameters:
address- IP address of the board (in0.0.0.0form; will be matched exactly by the values in the DB).- Returns:
- Board location description
-
getRootBoardBMPAddress
String getRootBoardBMPAddress()- Returns:
- The IP address of the BMP of the root board of the machine.
-
getBoardNumbers
-
getAvailableBoards
-
getBMPAddress
-
getBoardNumbers
-