de.cau.cs.kieler.kiml.grana.batch
Class BatchResult

java.lang.Object
  extended by de.cau.cs.kieler.kiml.grana.batch.BatchResult

public class BatchResult
extends Object

The class which contains the information about the results of an analysis batch run.

Rating red

Constructor Summary
BatchResult(List<AbstractInfoAnalysis> theAnalyses)
          Constructs an AnalysisBatchResult.
 
Method Summary
 void appendFailedJob(BatchJob<?> batchJob, Exception e)
          Appends a failed job with the exception that caused the failure.
 void appendJobResult(BatchJobResult<?> result)
          Appends a job result.
 List<AbstractInfoAnalysis> getAnalyses()
          Returns the analyses which have been performed in the batch run.
 List<Pair<BatchJob<?>,Exception>> getFailedJobs()
          Returns pairs of the failed jobs and the exceptions that caused the failure.
 List<BatchJobResult<?>> getJobResults()
          Returns the job results.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchResult

public BatchResult(List<AbstractInfoAnalysis> theAnalyses)
Constructs an AnalysisBatchResult.

Parameters:
theAnalyses - the analyses performed in the batch run
Method Detail

getAnalyses

public List<AbstractInfoAnalysis> getAnalyses()
Returns the analyses which have been performed in the batch run.

Returns:
the analyses

getJobResults

public List<BatchJobResult<?>> getJobResults()
Returns the job results.

Returns:
the job results

appendJobResult

public void appendJobResult(BatchJobResult<?> result)
Appends a job result.

Parameters:
result - the job result

getFailedJobs

public List<Pair<BatchJob<?>,Exception>> getFailedJobs()
Returns pairs of the failed jobs and the exceptions that caused the failure.

Returns:
a list of pairs of failed jobs and exceptions

appendFailedJob

public void appendFailedJob(BatchJob<?> batchJob,
                            Exception e)
Appends a failed job with the exception that caused the failure.

Parameters:
batchJob - the job
e - the exception