org.hackystat.projectbrowser.page.projectportfolio.detailspanel.chart
Interface StreamClassifier

All Known Implementing Classes:
StreamDeviationClassifier, StreamParticipationClassifier, StreamTrendClassifier

public interface StreamClassifier

Interface of stream classifier.

Author:
Shaoxuan Zhang

Method Summary
 org.apache.wicket.markup.html.panel.Panel getConfigurationPanel(java.lang.String id)
          Return the panel for users to configure this classifier.
 java.lang.String getName()
           
 PortfolioCategory getStreamCategory(MiniBarChart chart)
          Parse the given MiniBarChart and produce a PortfolioCategory result.
 PortfolioCategory getValueCategory(double value)
          Parse the given value and produce a PortfolioCategory result.
 void saveSetting(Measures.Measure measure)
          Save classifier's setting into the given Measures.Measure instance.
 

Method Detail

getStreamCategory

PortfolioCategory getStreamCategory(MiniBarChart chart)
Parse the given MiniBarChart and produce a PortfolioCategory result.

Parameters:
chart - the input chart
Returns:
StreamCategory enumeration.

getConfigurationPanel

org.apache.wicket.markup.html.panel.Panel getConfigurationPanel(java.lang.String id)
Return the panel for users to configure this classifier.

Parameters:
id - The Wicket component id.
Returns:
a Panel

getValueCategory

PortfolioCategory getValueCategory(double value)
Parse the given value and produce a PortfolioCategory result.

Parameters:
value - a double value.
Returns:
a PortfolioCategory.

getName

java.lang.String getName()
Returns:
the name of this classifier.

saveSetting

void saveSetting(Measures.Measure measure)
Save classifier's setting into the given Measures.Measure instance.

Parameters:
measure - the given Measures.Measure instance