java.lang.Object | ||
↳ | com.datalogic.extension.selfshopping.cradle.joyatouch.GenericArea | |
↳ | com.datalogic.extension.selfshopping.cradle.joyatouch.ConfigArea |
Class representing the Joya Touch configuration area, consisting in an array of bytes and its size. Each Cradle slot contains one of these areas. An exposed method allows to get or set the fast charge value contained in one of the bytes of the configuration area.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | SIZE | Config area size for the Joya Touch Cradle. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor for an area of
SIZE elements. | |||||||||||
Constructor that fills the area with the byte array given as input.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the failure notification bitmask from the cradle.
| |||||||||||
Returns the relock timeout stored in the cradle's configuration area.
| |||||||||||
Gets a value representing if the fast charge is enabled or disabled
in the current configuration area of the Joya Touch Cradle.
| |||||||||||
Returns the configuration area's flag which states whether the
notification LED's smoothing is enabled or not.
| |||||||||||
Returns the configuration area's flag which states whether the
standby LED is enabled or not.
| |||||||||||
Returns the configuration area's flag which states whether the
WLC is blocked all the times the lever is open or only when
an unlock command is received.
| |||||||||||
Set the failure notification mask.
| |||||||||||
Sets the value controlling the fast charge in the configuration area
of the Joya Touch Cradle.
| |||||||||||
Sets the configuration area's flag which states whether the
notification LED's smoothing is enabled or not.
| |||||||||||
Sets the relock timeout in the cradle's configuration area.
| |||||||||||
Sets the configuration area's flag which states whether the
standby LED is enabled or not.
| |||||||||||
Sets the corresponding configuration area's flag.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.datalogic.extension.selfshopping.cradle.joyatouch.GenericArea
| |||||||||||
From class
java.lang.Object
|
Config area size for the Joya Touch Cradle. It is not possible to write or read more than this amount of bytes.
Constructor that fills the area with the byte array given as input.
content | The byte array that will represent the content of the new area. This array will be deep copied inside the class, any modification to the original array will not be reproduced inside the ConfigArea object. |
---|
IllegalArgumentException | in case the input array is invalid. |
---|
Get the failure notification bitmask from the cradle. Failures on the cradle will be notified only when the corresponding bit is set on the mask.
int
the current failure notification mask
Returns the relock timeout stored in the cradle's configuration area. The value stored on the cradle is the timeout divided by 5. As a consequence the returned value is multiplied by 5.
int
the relock timeout in seconds.
Gets a value representing if the fast charge is enabled or disabled in the current configuration area of the Joya Touch Cradle.
boolean
true if the fast charge is enabled,
false otherwise.
Returns the configuration area's flag which states whether the notification LED's smoothing is enabled or not.
boolean
true if the smoothing is enabled,
false otherwise.
Returns the configuration area's flag which states whether the standby LED is enabled or not.
boolean
true if the smoothing is enabled,
false otherwise.
Returns the configuration area's flag which states whether the WLC is blocked all the times the lever is open or only when an unlock command is received.
boolean
true means that the WLC is blocked
all the times that the lever is open, no matter if this is done
with an unlock command or with the unlocking key.
When disabled (false) it means that the WLC is blocked only when
the unlock command is received, whereas the unlocking key has
no effect.
Set the failure notification mask.
mask | The failure bitmask that will be used from the cradle for notifying failures. |
---|
Sets the value controlling the fast charge in the configuration area of the Joya Touch Cradle.
enable | True for fast charge enable, false for fast charge disable. |
---|
Sets the configuration area's flag which states whether the notification LED's smoothing is enabled or not.
enable | True to enable smoothing, false for disabling it. |
---|
Sets the relock timeout in the cradle's configuration area. Allowed values are in the range [5 - 420] seconds. The stored value is divided by 5 before saving it (see above).
new_timeout | An integer value between 5 seconds and 420 seconds (7 minutes). |
---|
IllegalArgumentException | in case the input value is invalid. |
---|
Sets the configuration area's flag which states whether the standby LED is enabled or not.
enable | True to enable smoothing, false for disabling it. |
---|
Sets the corresponding configuration area's flag.
enable | True to bind the WLC status to the lever's one; false for binding the WLC status to the unlock command. |
---|