Class Machine
java.lang.Object
uk.ac.manchester.spinnaker.spalloc.messages.Machine
public class Machine extends Object
Describes a machine by its name, tags, width and height.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description List<BoardCoordinates>
getDeadBoards()
List<BoardLink>
getDeadLinks()
int
getHeight()
String
getName()
List<String>
getTags()
int
getWidth()
String
toString()
-
Constructor Details
-
Machine
public Machine(String name, List<String> tags, int width, int height, List<BoardCoordinates> deadBoards, List<BoardLink> deadLinks)- Parameters:
name
- The name of the machine.tags
- The tags on the machine.width
- The width of the machine.height
- The height of the machine.deadBoards
- The dead boards on the machine.deadLinks
- The dead links on the machine.
-
-
Method Details
-
getName
- Returns:
- The name of the machine.
-
getTags
- Returns:
- The tags on the machine.
-
getWidth
public int getWidth()- Returns:
- The width of the machine.
-
getHeight
public int getHeight()- Returns:
- The height of the machine.
-
getDeadBoards
- Returns:
- The dead boards on the machine.
-
getDeadLinks
- Returns:
- The dead links on the machine.
-
toString
-