public class BarcodeConfigurationValue extends java.lang.Object implements ISymbologySetting
Modifier and Type | Field and Description |
---|---|
protected IAsciiCommandExecuting |
commander
stored commander
|
protected com.uk.tsl.barcodeconfiguration.ConfigureBarcodeCommand |
configureBarcode
command used to configure reader
|
Constructor and Description |
---|
BarcodeConfigurationValue(IAsciiCommandExecuting commander,
int address,
int min,
int max,
int factory)
Initializes a new instance of the BarcodeConfigurationValue class
|
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
Forces re-read of value on next read
|
int |
getFactoryDefault()
Gets the factory default value for this setting
|
protected int |
getFactoryDefaultInternal() |
int |
getMaximumValue() |
int |
getMinimumValue() |
boolean |
getSaveRequired()
Gets a value indicating whether the settings have been made permanent
|
int |
getValue()
Gets current value of parameter
|
protected int |
getValueInternal(int defaultValue)
Gets current value of parameter
|
void |
makePermanent()
Makes any temporary changes permanent
|
protected int |
readValue()
Read value from scanner parameter address
|
void |
setFactoryDefault()
Sets value to default
|
protected void |
setFactoryDefaultInternal(int value) |
void |
setMaximumValue(int value) |
void |
setMinimumValue(int value) |
void |
setSaveRequired(boolean value) |
void |
setValue(int value,
ReaderMemory readerMemory)
Sets the value for the parameter
|
protected void |
setValueInternal(int value,
ReaderMemory readerMemory)
Sets the value for the parameter
|
protected boolean |
writeValue(int value,
boolean perm)
Write value to scanner parameter address
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearCache, getSaveRequired, makePermanent, setFactoryDefault
protected IAsciiCommandExecuting commander
protected com.uk.tsl.barcodeconfiguration.ConfigureBarcodeCommand configureBarcode
public BarcodeConfigurationValue(IAsciiCommandExecuting commander, int address, int min, int max, int factory)
commander
- Used to command the connected readeraddress
- Symbol PL4507 decoder parameter addressmin
- Minimum value allowedmax
- Maximum value allowedfactory
- Factory default valuepublic int getMaximumValue()
public void setMaximumValue(int value)
public int getMinimumValue()
public void setMinimumValue(int value)
public int getFactoryDefault()
public int getValue()
public void setValue(int value, ReaderMemory readerMemory)
value
- Value of parameterreaderMemory
- Permanent or Temporarypublic boolean getSaveRequired()
ISymbologySetting
getSaveRequired
in interface ISymbologySetting
public void setSaveRequired(boolean value)
protected int getFactoryDefaultInternal()
protected void setFactoryDefaultInternal(int value)
public void makePermanent()
makePermanent
in interface ISymbologySetting
public void clearCache()
clearCache
in interface ISymbologySetting
public void setFactoryDefault()
setFactoryDefault
in interface ISymbologySetting
protected int getValueInternal(int defaultValue)
defaultValue
- The value to return if the value cannot be fetched from the readerprotected void setValueInternal(int value, ReaderMemory readerMemory)
value
- Value of parameterreaderMemory
- Permanent or Temporaryprotected int readValue()
protected boolean writeValue(int value, boolean perm)
value
- value to writeperm
- true if permanent write