org.eobjects.analyzer.result
Class SimpleAnalysisResult

java.lang.Object
  extended by org.eobjects.analyzer.result.SimpleAnalysisResult
All Implemented Interfaces:
Serializable, AnalysisResult

public class SimpleAnalysisResult
extends Object
implements Serializable, AnalysisResult

A simple (and Serializable!) implementation of the AnalysisResult interface. Useful for storing and loading in files or other binary destinations, using Java's serialization API.

Author:
Kasper Sørensen
See Also:
Serialized Form

Constructor Summary
SimpleAnalysisResult(Map<ComponentJob,AnalyzerResult> results)
           
 
Method Summary
 Date getCreationDate()
          Gets the time that the results were created
 AnalyzerResult getResult(ComponentJob componentJob)
          Gets the results of a single Analyzer.
 Map<ComponentJob,AnalyzerResult> getResultMap()
          Gets the results mapped to the Component jobs
 List<AnalyzerResult> getResults()
          Gets the the results of this analysis.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleAnalysisResult

public SimpleAnalysisResult(Map<ComponentJob,AnalyzerResult> results)
Method Detail

getResults

public List<AnalyzerResult> getResults()
Description copied from interface: AnalysisResult
Gets the the results of this analysis.

Specified by:
getResults in interface AnalysisResult
Returns:
the results from the Analyzers in the executed job

getResult

public AnalyzerResult getResult(ComponentJob componentJob)
Description copied from interface: AnalysisResult
Gets the results of a single Analyzer.

Specified by:
getResult in interface AnalysisResult
Parameters:
componentJob - the component (either analyzer or explorer) job to find the result for
Returns:
the result for a given component job

getResultMap

public Map<ComponentJob,AnalyzerResult> getResultMap()
Description copied from interface: AnalysisResult
Gets the results mapped to the Component jobs

Specified by:
getResultMap in interface AnalysisResult
Returns:
a map with ComponentJobs as keys to the corresponding AnalyzerResults.

getCreationDate

public Date getCreationDate()
Description copied from interface: AnalysisResult
Gets the time that the results were created

Specified by:
getCreationDate in interface AnalysisResult
Returns:
the time that the results were created


Copyright © 2012 eobjects.org. All Rights Reserved.