to top
Datalogic APIs
public static class

PoseManager.PoseSettings

extends Object
java.lang.Object
   ↳ com.datalogic.device.configuration.PoseManager.PoseSettings

Class Overview

Settings related to a specific pose, they are assigned to the pose itself with:

The settings are used to specify additional constraints when entering or exiting the associated pose, as well as the operations to execute when the device is inside or outside the pose.

Summary

Nested Classes
class PoseManager.PoseSettings.Builder The builder for the PoseManager.PoseSettings
Public Methods
void addActivationOption(PoseManager.ActivationOption activationOption)
Add a new activation option in the list of available options.
void addExecutionOption(PoseManager.ExecutionOption executionOption)
Add a new execution option in the list of available options.
void clearActivationOptions()
Remove all existing activation options from the list of available options.
void clearExecutionOptions()
Remove all existing execution options from the list of available options.
List<PoseManager.ActivationOption> getActivationOptions()
Get an unmodifiable list of options used, together with the angle and the stabilization time, to detect if a device is considered inside or outside the associated pose.
float getDeltaAngle()
Get the maximum angle (in radians) accepted between a detected gravity vector and the associated pose gravity vector.
List<PoseManager.ExecutionOption> getExecutionOptions()
Get the list of options that describe the steps to take after the device is found inside or outside the associated pose.
int getStabilizationTime()
Get the amount of time (in milliseconds) in which the device must stay in or out the associated pose to cause this setting to become valid.
void removeActivationOption(PoseManager.ActivationOption activationOption)
Remove an existing activation option from the list of available options.
void removeExecutionOption(PoseManager.ExecutionOption executionOption)
Remove an existing execution option from the list of available options.
void setDeltaAngle(float deltaAngle)
Set the maximum angle (in radians) accepted between a detected gravity vector and the associated pose gravity vector.
void setStabilizationTIme(int stabilizationTIme)
Set the amount of time (in milliseconds) in which the device must stay in or out the associated pose to cause this setting to become valid.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public void addActivationOption (PoseManager.ActivationOption activationOption)

Added in revision 47

Add a new activation option in the list of available options.

Parameters
activationOption The activation option to add.

public void addExecutionOption (PoseManager.ExecutionOption executionOption)

Added in revision 47

Add a new execution option in the list of available options.

Parameters
executionOption The execution option to add.

public void clearActivationOptions ()

Added in revision 47

Remove all existing activation options from the list of available options.

public void clearExecutionOptions ()

Added in revision 47

Remove all existing execution options from the list of available options.

public List<PoseManager.ActivationOption> getActivationOptions ()

Added in revision 47

Get an unmodifiable list of options used, together with the angle and the stabilization time, to detect if a device is considered inside or outside the associated pose.

Returns
  • The list of activation options.

public float getDeltaAngle ()

Added in revision 47

Get the maximum angle (in radians) accepted between a detected gravity vector and the associated pose gravity vector. If the angle is exceeded the gravity vector is considered as outside the associated pose, otherwise it is considered as inside it.

Returns
  • The delta angle (in radians).

public List<PoseManager.ExecutionOption> getExecutionOptions ()

Added in revision 47

Get the list of options that describe the steps to take after the device is found inside or outside the associated pose.

Returns
  • The list of execution options.

public int getStabilizationTime ()

Added in revision 47

Get the amount of time (in milliseconds) in which the device must stay in or out the associated pose to cause this setting to become valid.

Returns
  • The stabilization time (in milliseconds).

public void removeActivationOption (PoseManager.ActivationOption activationOption)

Added in revision 47

Remove an existing activation option from the list of available options.

Parameters
activationOption The activation option to remove.

public void removeExecutionOption (PoseManager.ExecutionOption executionOption)

Added in revision 47

Remove an existing execution option from the list of available options.

Parameters
executionOption The execution option to remove.

public void setDeltaAngle (float deltaAngle)

Added in revision 47

Set the maximum angle (in radians) accepted between a detected gravity vector and the associated pose gravity vector. If the angle is exceeded the gravity vector is considered as outside the associated pose, otherwise it is considered as inside it.

Parameters
deltaAngle The delta angle (in radians).

public void setStabilizationTIme (int stabilizationTIme)

Added in revision 47

Set the amount of time (in milliseconds) in which the device must stay in or out the associated pose to cause this setting to become valid.

Parameters
stabilizationTIme The stabilization time (in milliseconds).