public class BarcodeConfigurationEnableDisable 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 |
---|
BarcodeConfigurationEnableDisable(IAsciiCommandExecuting commander,
int address,
int factory)
Initializes a new instance of the BarcodeConfigurationEnableDisable class
|
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
Forces re-read of value on next read
|
void |
disable(ReaderMemory readerMemory)
Disables parameter
|
void |
enable(ReaderMemory readerMemory)
Enables parameter
|
boolean |
getFactoryDefault()
Gets factory default value
|
protected int |
getFactoryDefaultInternal() |
boolean |
getSaveRequired()
Gets a value indicating whether the settings have been made permanent
|
protected int |
getValueInternal(int defaultValue)
Gets current value of parameter
|
boolean |
isEnabled()
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 |
setSaveRequired(boolean value) |
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 BarcodeConfigurationEnableDisable(IAsciiCommandExecuting commander, int address, int factory)
commander
- Used to command the connected readeraddress
- Symbol PL4507 decoder parameter addressfactory
- Factory default valuepublic boolean getFactoryDefault()
public boolean isEnabled()
public void enable(ReaderMemory readerMemory)
readerMemory
- Permanent or Temporarypublic void disable(ReaderMemory readerMemory)
readerMemory
- 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