hudson.plugins.violations.util
Class HealthNumber

java.lang.Object
  extended by hudson.plugins.violations.util.HealthNumber

public class HealthNumber
extends java.lang.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
 

Constructor Detail

HealthNumber

public HealthNumber(int min,
                    int max)
Constructor the class.

Parameters:
min - the min (sunny) value.
max - the max (stormy) value.
Method Detail

calculate

public int calculate(int val)
calculate the number.

Parameters:
val - the input value.
Returns:
the health number;


Copyright © 2004-2012. All Rights Reserved.