Class DescriptiveRatioGauge.Ratio
- java.lang.Object
- 
- com.inductiveautomation.ignition.gateway.metrics.DescriptiveRatioGauge.Ratio
 
- 
- Enclosing class:
- DescriptiveRatioGauge
 
 public static class DescriptiveRatioGauge.Ratio extends java.lang.ObjectA ratio of one quantity to another.
- 
- 
Field SummaryFields Modifier and Type Field Description doubledenominatordoublenumerator
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetValue()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.java.lang.StringtoString()
 
- 
- 
- 
Method Detail- 
ofpublic static DescriptiveRatioGauge.Ratio of(double numerator, double denominator) Creates a new ratio with the given numerator and denominator.- Parameters:
- numerator- the numerator of the ratio
- denominator- the denominator of the ratio
- Returns:
- numerator:denominator
 
 - 
getValuepublic double getValue() Returns the ratio, which is either adoublebetween 0 and 1 (inclusive) orNaN.- Returns:
- the ratio
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-