Class MeterConfig
-
- All Implemented Interfaces:
public class MeterConfigConfiguration for scanning meters
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumMeterConfig.ScanModeDetermines which types of meters to scan.
-
Field Summary
Fields Modifier and Type Field Description public MeterConfig.ScanModescanModepublic IntegerminConfidencepublic IntegermaxNumDecimalDigitspublic StringvalidationRegex
-
Constructor Summary
Constructors Constructor Description MeterConfig()
-
Method Summary
Modifier and Type Method Description MeterConfig.ScanModegetScanMode()Determines which types of meters to scan. voidsetScanMode(MeterConfig.ScanMode scanMode)Determines which types of meters to scan. IntegergetMinConfidence()Sets a minimum confidence which has to be reached in order to trigger a scan result. voidsetMinConfidence(Integer minConfidence)Sets a minimum confidence which has to be reached in order to trigger a scan result. IntegergetMaxNumDecimalDigits()Defines the maximum number of read decimal digits for values >=0. voidsetMaxNumDecimalDigits(Integer maxNumDecimalDigits)Defines the maximum number of read decimal digits for values >=0. StringgetValidationRegex()Sets a regular expression which the scanned text needs to match in order to trigger a scan result. voidsetValidationRegex(String validationRegex)Sets a regular expression which the scanned text needs to match in order to trigger a scan result. StringtoString()inthashCode()booleanequals(Object other)-
-
Method Detail
-
getScanMode
MeterConfig.ScanMode getScanMode()
Determines which types of meters to scan. (Required)
-
setScanMode
void setScanMode(MeterConfig.ScanMode scanMode)
Determines which types of meters to scan. (Required)
-
getMinConfidence
Integer getMinConfidence()
Sets a minimum confidence which has to be reached in order to trigger a scan result.
-
setMinConfidence
void setMinConfidence(Integer minConfidence)
Sets a minimum confidence which has to be reached in order to trigger a scan result.
-
getMaxNumDecimalDigits
Integer getMaxNumDecimalDigits()
Defines the maximum number of read decimal digits for values >=0. Negative values mean all decimal digits are read. Currently implemented only for the "auto_analog_digital_meter" scan mode.
-
setMaxNumDecimalDigits
void setMaxNumDecimalDigits(Integer maxNumDecimalDigits)
Defines the maximum number of read decimal digits for values >=0. Negative values mean all decimal digits are read. Currently implemented only for the "auto_analog_digital_meter" scan mode.
-
getValidationRegex
String getValidationRegex()
Sets a regular expression which the scanned text needs to match in order to trigger a scan result.
-
setValidationRegex
void setValidationRegex(String validationRegex)
Sets a regular expression which the scanned text needs to match in order to trigger a scan result.
-
hashCode
int hashCode()
-
-
-
-