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 class
Information about a single job. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDead()
int
int
getId()
getJobs()
getLive()
getName()
int
getQuota()
getTags()
int
getWidth()
void
setDead
(List<BoardCoords> dead) void
setDead
(MappableIterable<BoardCoords> dead) void
setHeight
(int height) void
setId
(int id) void
void
void
setLive
(List<BoardCoords> live) void
setLive
(MappableIterable<BoardCoords> live) void
void
setNumInUse
(int numInUse) void
void
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
-