de.cau.cs.kieler.kiml.grana.visualization
Interface IVisualizer<S,T>

Type Parameters:
S - the return type of the visualization
T - the parameter type for the visualization
All Known Implementing Classes:
AbstractSimpleVisualizer, AnalysisFailedHtmlVisualizer, ArrayResultVisualizer, BasicCSVVisualizer, BasicHtmlVisualizer, ToStringVisualizer

public interface IVisualizer<S,T>

The interface for all analysis result visualizer.

Rating red

Method Summary
 boolean canVisualize(Object result)
          Returns whether this class can visualize the given analysis result.
 S visualize(AbstractInfoAnalysis analysis, Object result, T parameter)
          Visualizes the given analysis result by modifying the given parameter and/or returning an object that represents the visualization, if canVisualize returns true for the given result.
 

Method Detail

canVisualize

boolean canVisualize(Object result)
Returns whether this class can visualize the given analysis result.

Parameters:
result - the result of an analysis
Returns:
true if this class can visualize the result

visualize

S visualize(AbstractInfoAnalysis analysis,
            Object result,
            T parameter)
Visualizes the given analysis result by modifying the given parameter and/or returning an object that represents the visualization, if canVisualize returns true for the given result.

Parameters:
analysis - the analysis
result - the result to visualize
parameter - the parameter
Returns:
an object that represents the visualization or null if not applicable