Class MeterConfig
-
- All Implemented Interfaces:
public class MeterConfig
Configuration for scanning meters
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
MeterConfig.ScanMode
Determines which types of meters to scan.
-
Field Summary
Fields Modifier and Type Field Description public MeterConfig.ScanMode
scanMode
public Integer
minConfidence
public Integer
maxNumDecimalDigits
public String
validationRegex
-
Constructor Summary
Constructors Constructor Description MeterConfig()
-
Method Summary
Modifier and Type Method Description MeterConfig.ScanMode
getScanMode()
Determines which types of meters to scan. void
setScanMode(MeterConfig.ScanMode scanMode)
Determines which types of meters to scan. Integer
getMinConfidence()
Sets a minimum confidence which has to be reached in order to trigger a scan result. void
setMinConfidence(Integer minConfidence)
Sets a minimum confidence which has to be reached in order to trigger a scan result. Integer
getMaxNumDecimalDigits()
Defines the maximum number of read decimal digits for values >=0. void
setMaxNumDecimalDigits(Integer maxNumDecimalDigits)
Defines the maximum number of read decimal digits for values >=0. String
getValidationRegex()
Sets a regular expression which the scanned text needs to match in order to trigger a scan result. void
setValidationRegex(String validationRegex)
Sets a regular expression which the scanned text needs to match in order to trigger a scan result. String
toString()
int
hashCode()
boolean
equals(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()
-
-
-
-