Class ImageScannerProperties
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
de.gmxhome.conrad.jpos.jpos_base.imagescanner.ImageScannerProperties
- All Implemented Interfaces:
ImageScannerInterface
,JposBaseInterface
Class containing the image scanner specific properties, their default values and default implementations of
ImageScannerInterface.
For details about properties, methods and method parameters, see UPOS specification, chapter Image Scanner.
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
UPOS property AimMode.UPOS property BitsPerPixel.boolean
UPOS property CapAim.boolean
UPOS property CapDecodeData.boolean
UPOS property CapHostTriggered.boolean
UPOS property CapIlluminate.boolean
UPOS property CapImageData.boolean
UPOS property CapImageQuality.boolean
UPOS property CapVideoData.byte[]
UPOS property FrameData.UPOS property FrameType.UPOS property IlluminateMode.UPOS property ImageHeight.UPOS property ImageLength.int
UPOS property ImageMode.int
UPOS property ImageQuality.UPOS property ImageType.UPOS property ImageWidth.boolean
Copy of AutoDisable property.int
UPOS property VideoCount.int
UPOS property VideoRate.Fields inherited from class de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
AllowAlwaysSetProperties, AllowDeprecatedMethods, AsyncInputActive, AsyncMode, AutoDisable, CapStatisticsReporting, CapUpdateStatistics, CheckHealthText, Claimed, Claiming, ClaimWaiters, CurrentCommands, CurrentUnitID, DataCount, DataEventEnabled, DataEventList, Device, DeviceEnabled, DeviceServiceDescription, DeviceServiceVersion, DevProps, ErrorString, ErrorUnits, EventCB, EventList, EventSource, EventString, EventUnitID, EventUnits, ExclusiveAllowed, ExclusiveNo, ExclusiveUse, ExclusiveYes, FirstEnableHappened, FlagWhenIdle, FlagWhenIdleStatusValue, FreezeEvents, Index, LogicalName, MaximumConfirmationEventWaitingTime, OutputID, PowerNotify, PowerState, SerializedRequestRunner, SerializedRequests, State, StrictFIFOEventHandling, SuspendedCommands, SuspendedConcurrentCommands, UnitsOnline, UsesSubsystemUnits
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
aimMode(boolean aimMode)
Final part of setting AimMode.void
autoDisable(boolean enable)
Final part of setting AutoDisable.void
Clear data properties.void
illuminateMode(boolean illuminateMode)
Final part of setting IlluminateMode.void
imageMode(int imageMode)
Final part of setting ImageMode.void
imageQuality(int imageQuality)
Final part of setting ImageQuality.void
Final part of StartSession method.void
Final part of StopSession method.void
videoCount(int videoCount)
Final part of setting VideoCount.void
videoRate(int videoRate)
Final part of setting VideoRate.Methods inherited from class de.gmxhome.conrad.jpos.jpos_base.JposCommonProperties
addProperties, asyncMode, attachWaiter, checkForDeprecation, checkHealth, checkProperties, claim, clearErrorProperties, clearInput, clearOutput, clearOutputErrorProperties, close, compareFirmwareVersion, dataEventEnabled, deviceEnabled, directIO, directIO, flagWhenIdle, freezeEvents, getClaimingInstance, handlePowerStateOnEnable, initOnClaim, initOnEnable, initOnFirstEnable, initOnOpen, newJposOutputRequest, open, powerNotify, release, releaseWaiter, removeFromPropertySetList, resetStatistics, retrieveStatistics, retryInput, retryOutput, signalWaiter, unitDataCount, updateFirmware, updateFirmware, updateStatistics, waitWaiter
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.gmxhome.conrad.jpos.jpos_base.JposBaseInterface
asyncMode, checkHealth, claim, clearInput, clearOutput, close, compareFirmwareVersion, dataEventEnabled, deviceEnabled, directIO, directIO, flagWhenIdle, freezeEvents, handlePowerStateOnEnable, newJposOutputRequest, open, powerNotify, release, removeFromPropertySetList, resetStatistics, retrieveStatistics, retryInput, retryOutput, unitDataCount, updateFirmware, updateFirmware, updateStatistics
-
Field Details
-
StoredAutoDisable
public boolean StoredAutoDisableCopy of AutoDisable property. This is the copy set and returned by AutoDisable getter and setter. However, since data event based standard handling must be replace by non-standard handling in case of video mode, the AutoDisabled property itself will be set to false in video mode by the framework.
Since access to AutoDisable will always be made via getter and setter, the application does not recognize this automatism, it sees always StoredAutoDisable instead of AutoDisable. -
CapAim
public boolean CapAimUPOS property CapAim. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method. -
CapDecodeData
public boolean CapDecodeDataUPOS property CapDecodeData. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method. -
CapHostTriggered
public boolean CapHostTriggeredUPOS property CapHostTriggered. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method. -
CapIlluminate
public boolean CapIlluminateUPOS property CapIlluminate. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method. -
CapImageData
public boolean CapImageDataUPOS property CapImageData. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method. -
CapImageQuality
public boolean CapImageQualityUPOS property CapImageQuality. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method. -
CapVideoData
public boolean CapVideoDataUPOS property CapVideoData. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method. -
AimMode
public boolean AimModeUPOS property AimMode. Default: false. Can be overwritten by objects derived from JposDevice within the changeDefaults or checkProperties method. -
BitsPerPixel
UPOS property BitsPerPixel. Default: null. -
FrameData
public byte[] FrameDataUPOS property FrameData. Default: null. -
FrameType
UPOS property FrameType. Default: null. -
IlluminateMode
UPOS property IlluminateMode. Default: null. -
ImageHeight
UPOS property ImageHeight. Default: null. -
ImageLength
UPOS property ImageLength. Default: null. -
ImageMode
public int ImageModeUPOS property ImageMode. Default: STILL_ONLY. -
ImageQuality
public int ImageQualityUPOS property ImageQuality. Default: QUAL_HIGH. -
ImageType
UPOS property ImageType. Default: null. -
ImageWidth
UPOS property ImageWidth. Default: null. -
VideoCount
public int VideoCountUPOS property VideoCount. Default: 15. -
VideoRate
public int VideoRateUPOS property VideoRate. Default: 30.
-
-
Constructor Details
-
ImageScannerProperties
protected ImageScannerProperties(int dev)Constructor.- Parameters:
dev
- Device index
-
-
Method Details
-
clearDataProperties
public void clearDataProperties()Description copied from class:JposCommonProperties
Clear data properties. Performed during ClearInput and ClearInputProperties.- Overrides:
clearDataProperties
in classJposCommonProperties
-
autoDisable
public void autoDisable(boolean enable) throws jpos.JposExceptionDescription copied from interface:JposBaseInterface
Final part of setting AutoDisable. Can be overwritten within derived classes. This method will be called only if the following plausibility checks lead to a positive result:- Device has not been closed.
- Specified by:
autoDisable
in interfaceJposBaseInterface
- Overrides:
autoDisable
in classJposCommonProperties
- Parameters:
enable
- New property value- Throws:
jpos.JposException
- If an error occurs while setting the property
-
aimMode
public void aimMode(boolean aimMode) throws jpos.JposExceptionDescription copied from interface:ImageScannerInterface
Final part of setting AimMode. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is open,
- CapAim is true or aimMode equals the previous property value,
- internal property AllowAlwaysSetProperties is true or aimMode equals the previous value of AimMode.
- Specified by:
aimMode
in interfaceImageScannerInterface
- Parameters:
aimMode
- New value for AimMode property.- Throws:
jpos.JposException
- If an error occurs.
-
illuminateMode
public void illuminateMode(boolean illuminateMode) throws jpos.JposExceptionDescription copied from interface:ImageScannerInterface
Final part of setting IlluminateMode. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is open,
- CapIlluminate is true or illuminateMode equals the previous property value,
- internal property AllowAlwaysSetProperties is true or illuminateMode equals the previous value of IlluminateMode.
- Specified by:
illuminateMode
in interfaceImageScannerInterface
- Parameters:
illuminateMode
- New value for IlluminateMode property.- Throws:
jpos.JposException
- If an error occurs.
-
imageMode
public void imageMode(int imageMode) throws jpos.JposExceptionDescription copied from interface:ImageScannerInterface
Final part of setting ImageMode. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is open,
- imageMode is one of DECODE_ONLY, STILL_ONLY, STILL_DECODE, VIDEO_DECODE, VIDEO_STILL or ALL,
- imageMode matches the capabilities CapDecodeData, CapImageData and CapVideoData,
- internal property AllowAlwaysSetProperties is true or imageMode equals the previous value of ImageMode.
- Specified by:
imageMode
in interfaceImageScannerInterface
- Parameters:
imageMode
- New value for ImageMode property.- Throws:
jpos.JposException
- If an error occurs.
-
imageQuality
public void imageQuality(int imageQuality) throws jpos.JposExceptionDescription copied from interface:ImageScannerInterface
Final part of setting ImageQuality. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is open,
- imageQuality is one of QUAL_LOW, QUAL_MED or QUAL_HIGH,
- if CapImageQuality is false, imageQuality equals the previous property value,
- internal property AllowAlwaysSetProperties is true or imageQuality equals the previous value of ImageQuality.
- Specified by:
imageQuality
in interfaceImageScannerInterface
- Parameters:
imageQuality
- New value for ImageQuality property.- Throws:
jpos.JposException
- If an error occurs.
-
videoCount
public void videoCount(int videoCount) throws jpos.JposExceptionDescription copied from interface:ImageScannerInterface
Final part of setting VideoCount. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is open,
- videoRate is a positive value,
- internal property AllowAlwaysSetProperties is true or videoCount equals the previous value of VideoCount.
- Specified by:
videoCount
in interfaceImageScannerInterface
- Parameters:
videoCount
- New value for VideoCount property.- Throws:
jpos.JposException
- If an error occurs.
-
videoRate
public void videoRate(int videoRate) throws jpos.JposExceptionDescription copied from interface:ImageScannerInterface
Final part of setting VideoRate. Can be overwritten within derived classes, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is open,
- videoRate is a positive value,
- internal property AllowAlwaysSetProperties is true or videoRate equals the previous value of VideoRate.
- Specified by:
videoRate
in interfaceImageScannerInterface
- Parameters:
videoRate
- New value for VideoRate property.- Throws:
jpos.JposException
- If an error occurs.
-
startSession
public void startSession() throws jpos.JposExceptionDescription copied from interface:ImageScannerInterface
Final part of StartSession method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapHostTriggered is true.
- Specified by:
startSession
in interfaceImageScannerInterface
- Throws:
jpos.JposException
- If an error occurs or in case of a timeout.
-
stopSession
public void stopSession() throws jpos.JposExceptionDescription copied from interface:ImageScannerInterface
Final part of StopSession method. Can be overwritten in derived class, if necessary. This method will be called only if the following plausibility checks lead to a positive result:- Device is enabled,
- CapHostTriggered is true.
- Specified by:
stopSession
in interfaceImageScannerInterface
- Throws:
jpos.JposException
- If an error occurs or in case of a timeout.
-