hudson.plugins.violations.util
Class HealthNumber
java.lang.Object
hudson.plugins.violations.util.HealthNumber
public class HealthNumber
- extends Object
A class to generate a health number for
a value based on min and max.
|
Constructor Summary |
HealthNumber(int min,
int max)
Constructor the class. |
|
Method Summary |
int |
calculate(int val)
calculate the number. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HealthNumber
public HealthNumber(int min,
int max)
- Constructor the class.
- Parameters:
min - the min (sunny) value.max - the max (stormy) value.
calculate
public int calculate(int val)
- calculate the number.
- Parameters:
val - the input value.
- Returns:
- the health number;
Copyright © 2004-2012 Hudson. All Rights Reserved.