Class JobResultsData
- java.lang.Object
-
- uk.ac.warwick.dcs.sherlock.module.web.data.results.JobResultsData
-
public class JobResultsData extends java.lang.Object
Stores all the data for the job results page
-
-
Constructor Summary
Constructors Constructor Description JobResultsData(IJob job)
Initialise the data object for the supplied job
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getFileCount()
Get the number of files in this jobjava.util.Map<java.lang.Integer,java.lang.Integer>
getGroupCounts()
Get the group count mapIJob
getJob()
Get the job showing the results forjava.lang.String
getJSONMap()
Convert this object to a JSON object, used by the JavaScript in the UIlong
getPersistentId()
Get hte persistent id of the jobjava.util.Map<SubmissionScore,java.util.List<SubmissionScore>>
getResultsMap()
Gets the results mapjava.lang.String
getStatus()
Get the status of the jobjava.util.List<TaskWrapper>
getTasks()
Get the list of tasks in the jobjava.lang.String
getTimestamp()
Get the time the job started
-
-
-
Constructor Detail
-
JobResultsData
public JobResultsData(IJob job)
Initialise the data object for the supplied job- Parameters:
job
- the job to show the results for
-
-
Method Detail
-
getGroupCounts
public java.util.Map<java.lang.Integer,java.lang.Integer> getGroupCounts()
Get the group count map- Returns:
- the map
-
getJSONMap
public java.lang.String getJSONMap()
Convert this object to a JSON object, used by the JavaScript in the UI- Returns:
- the JSON equivalent of this object
-
getJob
public IJob getJob()
Get the job showing the results for- Returns:
- the job
-
getPersistentId
public long getPersistentId()
Get hte persistent id of the job- Returns:
- the job id
-
getResultsMap
public java.util.Map<SubmissionScore,java.util.List<SubmissionScore>> getResultsMap()
Gets the results map- Returns:
- the map
-
getStatus
public java.lang.String getStatus()
Get the status of the job- Returns:
- the status as a string
-
getFileCount
public int getFileCount()
Get the number of files in this job- Returns:
- the number of files
-
getTasks
public java.util.List<TaskWrapper> getTasks()
Get the list of tasks in the job- Returns:
- the list of tasks, converted to the TaskWrapper object
-
getTimestamp
public java.lang.String getTimestamp()
Get the time the job started- Returns:
- the time as a formatted string
-
-