Class DescriptiveRatioGauge.Ratio
java.lang.Object
com.inductiveautomation.ignition.gateway.metrics.DescriptiveRatioGauge.Ratio
- Enclosing class:
 - DescriptiveRatioGauge
 
A ratio of one quantity to another.
- 
Field Summary
Fields - 
Method Summary
Modifier and TypeMethodDescriptiondoublegetValue()Returns the ratio, which is either adoublebetween 0 and 1 (inclusive) orNaN.static DescriptiveRatioGauge.Ratioof(double numerator, double denominator) Creates a new ratio with the given numerator and denominator.toString() 
- 
Field Details
- 
numerator
public final double numerator - 
denominator
public final double denominator 
 - 
 - 
Method Details
- 
of
Creates a new ratio with the given numerator and denominator.- Parameters:
 numerator- the numerator of the ratiodenominator- the denominator of the ratio- Returns:
 numerator:denominator
 - 
getValue
public double getValue()Returns the ratio, which is either adoublebetween 0 and 1 (inclusive) orNaN.- Returns:
 - the ratio
 
 - 
toString
 
 -