Class MachineDescription
java.lang.Object
uk.ac.manchester.spinnaker.alloc.model.MachineDescription
public class MachineDescription extends Object
Descriptive detail for a machine. Used for HTML generation.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MachineDescription.JobInfo
Information about a single job. -
Constructor Summary
Constructors Constructor Description MachineDescription()
-
Method Summary
Modifier and Type Method Description List<BoardCoords>
getDead()
int
getHeight()
int
getId()
List<MachineDescription.JobInfo>
getJobs()
List<BoardCoords>
getLive()
String
getName()
int
getNumInUse()
Optional<Long>
getQuota()
List<String>
getTags()
int
getWidth()
void
setDead(List<BoardCoords> dead)
void
setDead(MappableIterable<BoardCoords> dead)
void
setHeight(int height)
void
setId(int id)
void
setJobs(List<MachineDescription.JobInfo> jobs)
void
setJobs(MappableIterable<MachineDescription.JobInfo> jobs)
void
setLive(List<BoardCoords> live)
void
setLive(MappableIterable<BoardCoords> live)
void
setName(String name)
void
setNumInUse(int numInUse)
void
setQuota(Long quota)
void
setTags(List<String> tags)
void
setTags(MappableIterable<String> tags)
void
setWidth(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
-