@ProviderType
public interface ReleaseActionParameters
This interface represents parameters for a release action defined/configured by the end user.
These parameters are used when generating script code for a release action (seeGripperContribution.generateReleaseActionScript(ScriptWriter, ReleaseActionParameters)
).Modifier and Type | Method and Description |
---|---|
SelectableGripper |
getGripperSelection()
Get the gripper selected by the end user for the release action.
|
Speed |
getSpeed()
Get the selected speed to be used for releasing the gripper.
|
Length |
getWidth()
Get the selected width to be used for releasing the gripper.
|
boolean |
isReleaseDetectionEnabled()
Use this method to determine whether the release detection option in the Gripper program node is on or off.
|
Length getWidth()
Get the selected width to be used for releasing the gripper.
This is only valid, if the width capability has been registered (using the methodGripperCapabilities.registerWidthCapability(double, double, double, double, Length.Unit)
).UnsupportedOperationException
- if the gripper has not registered the width capabilitySpeed getSpeed()
Get the selected speed to be used for releasing the gripper.
This is only valid, if the speed capability has been registered (using the methodGripperCapabilities.registerSpeedCapability(double, double, double, double, Speed.Unit)
).UnsupportedOperationException
- if the gripper has not registered the speed capabilitySelectableGripper getGripperSelection()
Get the gripper selected by the end user for the release action.
This is only valid if the contribution has registered the multi-gripper capability (seeGripperCapabilities.registerMultiGripperCapability(GripperListProvider)
).UnsupportedOperationException
- if the gripper contribution is not a multi-gripperboolean isReleaseDetectionEnabled()
Use this method to determine whether the release detection option in the Gripper program node is on or off.
Note that this method will report that release detection is off, when script code is to be generated due to the user testing a release configuration of a gripper program or operating the gripper using the toolbar.
This method should only be called, if the release detected feedback capability has been registered (using
GripperFeedbackCapabilities.registerReleaseDetectedCapability(ScriptCodeGenerator)
).
The purpose of this method is to ensure that the appropriate script code for performing a release action is generated when the end user has specified a new payload value. The user-defined payload value will be applied by PolyScope immediately after the generated release action script code has finished executing. Depending on the enablement state of release detection, the generated script should have the following properties:
true
if the end user has enabled release detection, and false
if release detection is disabled.UnsupportedOperationException
- if the gripper has not registered the release detected feedback capabilityCopyright © 2021. All rights reserved.