Class BMPLocation
java.lang.Object
uk.ac.manchester.spinnaker.machine.board.BMPLocation
- All Implemented Interfaces:
HasBMPLocation
public final class BMPLocation extends Object implements HasBMPLocation
Like a core location, but for BMPs. Note that board
numbers are not restricted in range like core numbers.
- Author:
- Donal Fellows
-
Constructor Summary
Constructors Constructor Description BMPLocation(int board)
Create an instance with cabinet and frame both zero.BMPLocation(int cabinet, int frame, int board)
Create an instance. -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface uk.ac.manchester.spinnaker.machine.board.HasBMPLocation
asBMPLocation
-
Constructor Details
-
BMPLocation
public BMPLocation(int board)Create an instance with cabinet and frame both zero.- Parameters:
board
- The board number.
-
BMPLocation
public BMPLocation(int cabinet, int frame, int board)Create an instance.- Parameters:
cabinet
- The cabinet number.frame
- The frame number.board
- The board number.
-
-
Method Details
-
getCabinet
public int getCabinet()- Specified by:
getCabinet
in interfaceHasBMPLocation
- Returns:
- The cabinet number of the board. Not actually a processor coordinate.
-
getFrame
public int getFrame()- Specified by:
getFrame
in interfaceHasBMPLocation
- Returns:
- The frame number of the board. Not actually a processor coordinate.
-
getBoard
public int getBoard()- Specified by:
getBoard
in interfaceHasBMPLocation
- Returns:
- The board number of the board. Not actually a processor ID.
-
equals
-
hashCode
public int hashCode()
-