@ProviderType public interface GripperRegistrationManager extends DeviceRegistrationManager
This interface is used for registering a program node contribution/service (i.e. implementations of the interfaces
ProgramNodeContribution
and SwingProgramNodeService
/ ProgramNodeService
) as conformant with
a PolyScope gripper device. This will allow a "regular" URCap to act as well as be treated and seen the same way
as a URCap implementing the GripperContribution
interface.
Note: This interface is not relevant for URCaps implementing the GripperContribution
interface, since
such URCaps are by default a PolyScope gripper device.
Registering as a PolyScope gripper device will enable other program node contributions (could be contributed by a different 3rd party URCap) to use and configure the conformant gripper program node contribution for e.g. creating a ' template node.
The device registration will give the conformant gripper program node contribution the following abilities:
GripperManager.getGrippers()
GripperNodeFactory.createGripperNode(GripperDevice)
GripperNode.setConfig(GripperNodeConfig)
In order for the program node to be insertable and configurable, the program node contribution must implement
the GripperConfigurable
interface.
Modifier and Type | Method and Description |
---|---|
<T extends ProgramNodeContribution & GripperConfigurable> |
registerAsGripper(Class<T> gripperProgramNodeContributionClass)
Register this program node contribution as a conformant PolyScope gripper device.
|
<T extends ProgramNodeContribution & GripperConfigurable> GripperRegistrationConfiguration registerAsGripper(Class<T> gripperProgramNodeContributionClass)
Register this program node contribution as a conformant PolyScope gripper device.
Note: This is a one-time registration that must be performed within the scope of the call to either
SwingProgramNodeService.configureContribution(ContributionConfiguration)
(for Swing-based URCaps) or
ProgramNodeServiceConfigurable.configureContribution(ProgramNodeConfiguration)
(for HTML-based URCaps).
Note: The program node contribution must implement the GripperConfigurable
interface.
T
- The class type for the program node contribution that should be registered as conformant with a
PolyScope gripper device, i.e. the class type of the instance returned when the
SwingProgramNodeService.createNode(ProgramAPIProvider, SwingProgramNodeView, DataModel, CreationContext)
or ProgramNodeService.createNode(URCapAPI, DataModel)
method is called on the service. Besides
implementing the ProgramNodeContribution
interface, the class type must also implement
the GripperConfigurable
interface.gripperProgramNodeContributionClass
- The class of the program node contribution to be registered as a
conformant PolyScope gripper device, not null
.SwingProgramNodeService.configureContribution(ContributionConfiguration)
(for Swing-based URCaps)
or ProgramNodeServiceConfigurable.configureContribution(ProgramNodeConfiguration)
(for HTML-based
URCaps).DeviceAlreadyRegistered
- if the specified program node contribution has already been registered as a
conformant gripper device.CalledOutsideMethodScope
- if this method is called at the wrong time, i.e. outside the scope of the call to
either SwingProgramNodeService.configureContribution(ContributionConfiguration)
(for Swing-based URCaps) or
ProgramNodeServiceConfigurable.configureContribution(ProgramNodeConfiguration)
(for HTML-based URCaps).Copyright © 2021. All rights reserved.