@ProviderType
public interface ProgramNodeFactory
This interfaces supplies methods to create different types of program nodes.
Both built-in program nodes (provided by Universal Robots) and URCap program nodes can be created. Most methods will create a node with the same default configuration as if the end user added the node manually.
Note: The default configuration may change between PolyScope versions.Modifier and Type | Method and Description |
---|---|
AssignmentNode |
createAssignmentNode() |
CircleMoveNode |
createCircleMoveNode() |
CommentNode |
createCommentNode() |
DirectionNode |
createDirectionNode() |
ElseIfNode |
createElseIfNode() |
ElseNode |
createElseNode() |
FolderNode |
createFolderNode() |
ForceNode |
createForceNode() |
HaltNode |
createHaltNode() |
HomeNode |
createHomeNode()
Creates a default Home Node.
|
IfNode |
createIfNode() |
LoopNode |
createLoopNode() |
MoveNode |
createMoveNode()
Creates a default Move node with one default Waypoint node under it.
|
MoveNode |
createMoveNodeNoTemplate()
Creates a default Move node without a Waypoint node under it.
|
PalletNode |
createPalletNode() |
PopupNode |
createPopupNode() |
ScrewdrivingNode |
createScrewdrivingNode()
Creates a Screwdriving node.
|
SeekNode |
createSeekNode() |
SetNode |
createSetNode() |
SetPayloadNode |
createSetPayloadNode()
Creates a default Set Payload Node where the default payload (defined in the installation) is selected.
|
UntilNode |
createUntilNode()
Creates a default Until Node where the type of the until stop condition is not specified.
|
URCapProgramNode |
createURCapProgramNode(Class<? extends URCapProgramNodeService> urcapProgramNodeService)
This method creates a URCap program node which is an instance of a
ProgramNodeContribution . |
WaitNode |
createWaitNode() |
WaypointNode |
createWaypointNode()
Creates a default Waypoint node with default waypoint name (corresponds to the name generated if the end user
added a new node manually).
|
WaypointNode |
createWaypointNode(String suggestedName)
Creates a default Waypoint node with a suggested custom name.
|
URCapProgramNode createURCapProgramNode(Class<? extends URCapProgramNodeService> urcapProgramNodeService)
ProgramNodeContribution
.urcapProgramNodeService
- is the service creating the program node contribution.URCapProgramNode
which represents the ProgramNodeContribution
created by URCapProgramNodeService
. Returns null
if URCap providing urcapProgramNodeService is
not installed.IllegalArgumentException
- if the argument urcapProgramNodeService is null
or urcapProgramNodeService
does not implement URCapProgramNodeService
.MoveNode createMoveNode()
MoveNode createMoveNodeNoTemplate()
Creates a default Move node without a Waypoint node under it. This can, for instance, be used to create a Move
node with waypoints with custom names under it (created using createWaypointNode(String)
).
CircleMoveNode createCircleMoveNode()
WaypointNode createWaypointNode()
WaypointNode createWaypointNode(String suggestedName)
Creates a default Waypoint node with a suggested custom name.
The final waypoint name can be different if the specified suggested name is already registered. The waypoint name is registered when the Waypoint node is inserted into the program tree.
Variable waypoints will use the name of the selected variable instead of the suggested name.suggestedName
- The suggested name for the waypoint. Valid names must match regex [a-zA-Z][a-zA-Z0-9_]{0,14}
for a total of 15 characters.IllegalWaypointNameException
- If the suggested name does not match required regex.UntilNode createUntilNode()
DirectionNode createDirectionNode()
WaitNode createWaitNode()
SetNode createSetNode()
PopupNode createPopupNode()
HaltNode createHaltNode()
CommentNode createCommentNode()
FolderNode createFolderNode()
SetPayloadNode createSetPayloadNode()
LoopNode createLoopNode()
AssignmentNode createAssignmentNode()
IfNode createIfNode()
ElseIfNode createElseIfNode()
ElseNode createElseNode()
HomeNode createHomeNode()
PalletNode createPalletNode()
SeekNode createSeekNode()
ForceNode createForceNode()
@RequiredCapability(value=SCREWDRIVING) ScrewdrivingNode createScrewdrivingNode()
CapabilityNotSupportedException
- If the Screwdriving capability is not available. Use
CapabilityManager.hasCapability(Capability)
with
ProgramNodeCapability.SCREWDRIVING
as argument to verify
availability.Copyright © 2021. All rights reserved.