public class

ConfigArea

extends GenericArea
java.lang.Object
   ↳ com.datalogic.extension.selfshopping.cradle.joyatouch.GenericArea
     ↳ com.datalogic.extension.selfshopping.cradle.joyatouch.ConfigArea

Class Overview

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.

Summary

Constants
int SIZE Config area size for the Joya Touch Cradle.
Public Constructors
ConfigArea()
Constructor for an area of SIZE elements.
ConfigArea(byte[] content)
Constructor that fills the area with the byte array given as input.
Public Methods
int getFailureNotificationMask()
Get the failure notification bitmask from the cradle.
int getRelockTimeout()
Returns the relock timeout stored in the cradle's configuration area.
boolean isFastChargeEnabled()
Gets a value representing if the fast charge is enabled or disabled in the current configuration area of the Joya Touch Cradle.
boolean isNotificationLedSmoothingEnabled()
Returns the configuration area's flag which states whether the notification LED's smoothing is enabled or not.
boolean isStandbyLedEnabled()
Returns the configuration area's flag which states whether the standby LED is enabled or not.
boolean isStopWlcWhenLeverOpenEnabled()
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.
void setFailureNotificationMask(int mask)
Set the failure notification mask.
void setFastChargeEnabled(boolean enable)
Sets the value controlling the fast charge in the configuration area of the Joya Touch Cradle.
void setNotificationLedSmoothingEnabled(boolean enable)
Sets the configuration area's flag which states whether the notification LED's smoothing is enabled or not.
void setRelockTimeout(int new_timeout)
Sets the relock timeout in the cradle's configuration area.
void setStandbyLedEnabled(boolean enable)
Sets the configuration area's flag which states whether the standby LED is enabled or not.
void setStopWlcWhenLeverOpenEnabled(boolean enable)
Sets the corresponding configuration area's flag.
[Expand]
Inherited Methods
From class com.datalogic.extension.selfshopping.cradle.joyatouch.GenericArea
From class java.lang.Object

Constants

public static final int SIZE

Added in revision 1

Config area size for the Joya Touch Cradle. It is not possible to write or read more than this amount of bytes.

Constant Value: 32 (0x00000020)

Public Constructors

public ConfigArea ()

Added in revision 1

Constructor for an area of SIZE elements.

public ConfigArea (byte[] content)

Added in revision 1

Constructor that fills the area with the byte array given as input.

Parameters
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.
Throws
IllegalArgumentException in case the input array is invalid.

Public Methods

public int getFailureNotificationMask ()

Added in revision 6

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.

Returns
  • int the current failure notification mask

public int getRelockTimeout ()

Added in revision 5

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.

Returns
  • int the relock timeout in seconds.

public boolean isFastChargeEnabled ()

Added in revision 1

Gets a value representing if the fast charge is enabled or disabled in the current configuration area of the Joya Touch Cradle.

Returns
  • boolean true if the fast charge is enabled, false otherwise.

public boolean isNotificationLedSmoothingEnabled ()

Added in revision 5

Returns the configuration area's flag which states whether the notification LED's smoothing is enabled or not.

Returns
  • boolean true if the smoothing is enabled, false otherwise.

public boolean isStandbyLedEnabled ()

Added in revision 5

Returns the configuration area's flag which states whether the standby LED is enabled or not.

Returns
  • boolean true if the smoothing is enabled, false otherwise.

public boolean isStopWlcWhenLeverOpenEnabled ()

Added in revision 6

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.

Returns
  • 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.

public void setFailureNotificationMask (int mask)

Added in revision 6

Set the failure notification mask.

Parameters
mask The failure bitmask that will be used from the cradle for notifying failures.

public void setFastChargeEnabled (boolean enable)

Added in revision 1

Sets the value controlling the fast charge in the configuration area of the Joya Touch Cradle.

Parameters
enable True for fast charge enable, false for fast charge disable.

public void setNotificationLedSmoothingEnabled (boolean enable)

Added in revision 5

Sets the configuration area's flag which states whether the notification LED's smoothing is enabled or not.

Parameters
enable True to enable smoothing, false for disabling it.

public void setRelockTimeout (int new_timeout)

Added in revision 5

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).

Parameters
new_timeout An integer value between 5 seconds and 420 seconds (7 minutes).
Throws
IllegalArgumentException in case the input value is invalid.

public void setStandbyLedEnabled (boolean enable)

Added in revision 5

Sets the configuration area's flag which states whether the standby LED is enabled or not.

Parameters
enable True to enable smoothing, false for disabling it.

public void setStopWlcWhenLeverOpenEnabled (boolean enable)

Added in revision 6

Sets the corresponding configuration area's flag.

Parameters
enable True to bind the WLC status to the lever's one; false for binding the WLC status to the unlock command.