Class JobMachineInfo
java.lang.Object
uk.ac.manchester.spinnaker.spalloc.messages.JobMachineInfo
public final class JobMachineInfo extends Object
A description of a machine associated with a job, in terms of width, height,
connections and its name.
-
Constructor Summary
Constructors Constructor Description JobMachineInfo(int width, int height, List<Connection> connections, String machineName, List<BoardCoordinates> boards)
-
Method Summary
Modifier and Type Method Description List<BoardCoordinates>
getBoards()
List<Connection>
getConnections()
int
getHeight()
String
getMachineName()
int
getWidth()
String
toString()
-
Constructor Details
-
JobMachineInfo
public JobMachineInfo(int width, int height, List<Connection> connections, String machineName, List<BoardCoordinates> boards)- Parameters:
width
- The width of the allocated machine chunk.height
- The height of the allocated machine chunk.connections
- How to talk to the allocated boards.machineName
- The name of the machine handling the job.boards
- Locations of the allocated boards.
-
-
Method Details
-
getWidth
public int getWidth()- Returns:
- The width of the allocated machine chunk.
-
getHeight
public int getHeight()- Returns:
- The height of the allocated machine chunk.
-
getConnections
- Returns:
- How to talk to the allocated boards.
-
getMachineName
- Returns:
- The name of the machine handling the job.
-
getBoards
- Returns:
- Locations of the allocated boards.
-
toString
-