Class MachineDescription
java.lang.Object
uk.ac.manchester.spinnaker.alloc.model.MachineDescription
Descriptive detail for a machine. Used for HTML generation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classInformation about a single job. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDead()intintgetId()getJobs()getLive()getName()intgetQuota()getTags()intgetWidth()voidsetDead(List<BoardCoords> dead) voidsetDead(MappableIterable<BoardCoords> dead) voidsetHeight(int height) voidsetId(int id) voidvoidvoidsetLive(List<BoardCoords> live) voidsetLive(MappableIterable<BoardCoords> live) voidvoidsetNumInUse(int numInUse) voidvoidvoidsetTags(MappableIterable<String> tags) voidsetWidth(int width)
-
Constructor Details
-
MachineDescription
public MachineDescription()
-
-
Method Details
-
getId
public int getId()- Returns:
- the machine ID
-
setId
public void setId(int id) - Parameters:
id- the machine ID
-
getName
- Returns:
- the machine name
-
setName
- Parameters:
name- the machine name
-
getWidth
public int getWidth()- Returns:
- the width of the machine in triads
-
setWidth
public void setWidth(int width) - Parameters:
width- the width of the machine in triads
-
getHeight
public int getHeight()- Returns:
- the height of the machine in triads
-
setHeight
public void setHeight(int height) - Parameters:
height- the height of the machine in triads
-
getNumInUse
public int getNumInUse()- Returns:
- the number of boards in use
-
setNumInUse
public void setNumInUse(int numInUse) - Parameters:
numInUse- the number of boards in use
-
getLive
- Returns:
- the in-service boards
-
setLive
- Parameters:
live- the in-service boards
-
setLive
- Parameters:
live- the in-service boards
-
getDead
- Returns:
- the out-of-service boards
-
setDead
- Parameters:
dead- the out-of-service boards
-
setDead
- Parameters:
dead- the out-of-service boards
-
getJobs
- Returns:
- the machine's jobs
-
setJobs
- Parameters:
jobs- the machine's jobs
-
setJobs
- Parameters:
jobs- the machine's jobs
-
getTags
- Returns:
- the machine's tags
-
setTags
- Parameters:
tags- the machine's tags
-
setTags
- Parameters:
tags- the machine's tags
-
getQuota
- Returns:
- the quota (if that information is to be exposed to the current user and is meaningful)
-
setQuota
- Parameters:
quota- the current user's quota
-