Class Machine
java.lang.Object
uk.ac.manchester.spinnaker.nmpi.machinemanager.responses.Machine
public class Machine extends Object
Describes a machine by its name, tags, width and height.
-
Constructor Summary
Constructors Constructor Description Machine()
-
Method Summary
Modifier and Type Method Description int
getHeight()
Get the height of the machine.String
getName()
Get the name of the machine.List<String>
getTags()
Get the tags associated with the machine.int
getWidth()
Get the width of the machine.void
setHeight(int height)
Set the height of the machine.void
setName(String name)
Set the name of the machine.void
setTags(List<String> tags)
Set the tags associated with the machine.void
setWidth(int width)
Set the width of the machine.
-
Constructor Details
-
Machine
public Machine()
-
-
Method Details
-
getName
Get the name of the machine.- Returns:
- The name of the machine
-
setName
Set the name of the machine.- Parameters:
name
- The name of the machine to set
-
getTags
Get the tags associated with the machine.- Returns:
- The tags
-
setTags
Set the tags associated with the machine.- Parameters:
tags
- The tags to set
-
getWidth
public int getWidth()Get the width of the machine.- Returns:
- The width in chips
-
setWidth
public void setWidth(int width)Set the width of the machine.- Parameters:
width
- The width in chips
-
getHeight
public int getHeight()Get the height of the machine.- Returns:
- The height in chips
-
setHeight
public void setHeight(int height)Set the height of the machine.- Parameters:
height
- The height in chips
-