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 SummaryModifier 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 uk.ac.manchester.spinnaker.alloc.allocator.SpallocAPI.WaitablewaitForChange
- 
Method Details- 
getIdint getId()- Returns:
- The ID of the machine. Unique.
 
- 
getNameString getName()- Returns:
- The name of the machine. Unique.
 
- 
getTags- Returns:
- The tags associated with the machine.
 
- 
getWidthint getWidth()- Returns:
- The width of the machine.
 
- 
getHeightint getHeight()- Returns:
- The height of the machine.
 
- 
isHorizonallyWrappedboolean isHorizonallyWrapped()- Returns:
- Whether the machine wraps in the horizontal direction.
 
- 
isVerticallyWrappedboolean isVerticallyWrapped()- Returns:
- Whether the machine wraps in the vertical direction.
 
- 
isInServiceboolean isInService()- Returns:
- Whether this machine is currently in service.
 
- 
getDeadBoardsList<BoardCoords> getDeadBoards()The IDs of boards marked as dead or otherwise taken out of service.- Returns:
- A list of boards. Not modifiable.
 
- 
getDownLinksThe links within the machine that are marked as dead or otherwise taken out of service. Note that this does not include links that lead out of the machine.- Returns:
- A list of links. Not modifiable.
 
- 
getBoardByChipOptional<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
 
- 
getBoardByPhysicalCoordsOptional<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
 
- 
getBoardByLogicalCoordsOptional<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
 
- 
getBoardByIPAddressGet a description of the location of a board given the address of its ethernet chip.- Parameters:
- address- IP address of the board (in- 0.0.0.0form; will be matched exactly by the values in the DB).
- Returns:
- Board location description
 
- 
getRootBoardBMPAddressString getRootBoardBMPAddress()- Returns:
- The IP address of the BMP of the root board of the machine.
 
- 
getBoardNumbers- Returns:
- The boards supported by the machine.
 
- 
getAvailableBoards- Returns:
- The IDs of boards currently available to be allocated.
 
- 
getBMPAddressGet the address of a particular BMP of a machine.- Parameters:
- bmp- The BMP coordinates (cabinet, frame).
- Returns:
- The IP address of the BMP.
 
- 
getBoardNumbersGet the board numbers managed by a particular BMP of a machine.- Parameters:
- bmp- The BMP coordinates( cabinet, frame).
- Returns:
- The board numbers managed by that BMP.
 
 
-