|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.projectbrowser.page.projectportfolio.detailspanel.chart.StreamDeviationClassifier
public class StreamDeviationClassifier
Classify the trend according to its deviation. Higher deviation is worse. Expectation value is not considered when coloring trend. Value is colored according to its deviation to the expectation value.
Field Summary | |
---|---|
static java.lang.String |
name
Name of this classifier. |
Constructor Summary | |
---|---|
StreamDeviationClassifier(double moderateDeviation,
double unacceptableDeviation,
double expectationValue,
boolean scaleWithGranularity)
|
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)
Return the category of the given value. |
void |
saveSetting(Measures.Measure measure)
Save classifier's setting into the given Measures.Measure instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String name
Constructor Detail |
---|
public StreamDeviationClassifier(double moderateDeviation, double unacceptableDeviation, double expectationValue, boolean scaleWithGranularity)
moderateDeviation
- The deviation within which the trend is considered healthy.unacceptableDeviation
- The deviation beyond which the trend is considered unhealthy.expectationValue
- The expectation value.scaleWithGranularity
- If the condition will scale with granularity.Method Detail |
---|
public org.apache.wicket.markup.html.panel.Panel getConfigurationPanel(java.lang.String id)
getConfigurationPanel
in interface StreamClassifier
id
- The Wicket component id.
public java.lang.String getName()
getName
in interface StreamClassifier
public PortfolioCategory getStreamCategory(MiniBarChart chart)
getStreamCategory
in interface StreamClassifier
chart
- the input chart
public PortfolioCategory getValueCategory(double value)
moderateDeviation
, GOOD will be returned.
If value is lower than unacceptableDeviation
, AVERAGE will be returned.
Otherwise, will return POOR.
getValueCategory
in interface StreamClassifier
value
- the given value.
PortfolioCategory
resultpublic void saveSetting(Measures.Measure measure)
Measures.Measure
instance.
saveSetting
in interface StreamClassifier
measure
- the given Measures.Measure
instance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |