public class CreateSurroundingBlock
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.logging.Logger |
logger
the Logger for the change operation
|
| Constructor and Description |
|---|
CreateSurroundingBlock() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isPossible(ChangeableInstance instance,
Node first,
Node last,
ProcessConstants.BlockType type)
Check if it is possible (concerning structural and state-based correctness)
to create a block which surrounds the two given nodes in the given
instance.
|
static boolean |
isPossible(ChangeableInstance instance,
Node first,
Node last,
ProcessConstants.BlockType type,
CheckReport checkReport)
Check if it is possible (concerning structural and state-based correctness)
to create a block which surrounds the two given nodes in the given
template.
|
static boolean |
isPossible(Template template,
Node first,
Node last,
ProcessConstants.BlockType type)
Check if it is possible (concerning structural correctness) to create a
block which surrounds the two given nodes in the given template.
|
static boolean |
isPossible(Template template,
Node first,
Node last,
ProcessConstants.BlockType type,
CheckReport checkReport)
Check if it is possible (concerning structural correctness) to create a
block which surrounds the two given nodes in the given template.
|
static Node[] |
performOperation(SessionToken session,
ChangeableInstance instance,
Node first,
Node last,
ProcessConstants.BlockType type)
Inserts a new block of the given type around the two given nodes in the
given instance.
|
static Node[] |
performOperation(SessionToken session,
ChangeableInstance instance,
Node first,
Node last,
ProcessConstants.BlockType type,
UpdateManager updateManager)
Inserts a new block of the given type around the two given nodes in the
given instance (with updateManager).
|
static Node[] |
performOperation(SessionToken session,
ChangeableTemplate template,
Node first,
Node last,
ProcessConstants.BlockType type)
Inserts a new block of the given type around the two given nodes in the
given template.
|
static Node[] |
performOperation(SessionToken session,
ChangeableTemplate template,
Node first,
Node last,
ProcessConstants.BlockType type,
UpdateManager updateManager)
Inserts a new block of the given type around the two given nodes in the
given template (with updateManager).
|
protected static Node[] |
performOperation(SessionToken session,
ChangePrimitives processGraph,
Node first,
Node last,
ProcessConstants.BlockType type,
UpdateManager updateManager)
Worker method to do the structural changes for both changeable templates
and changeable instances.
|
protected static final java.util.logging.Logger logger
public static boolean isPossible(Template template, Node first, Node last, ProcessConstants.BlockType type)
template - The template where the method is performed on.first - the first node of the blocklast - the last node of the blocktype - the BlockTypepublic static boolean isPossible(Template template, Node first, Node last, ProcessConstants.BlockType type, CheckReport checkReport)
template - The template where the method is performed on.first - the first node of the blocklast - the last node of the blocktype - the BlockTypecheckReport - a checkReport object which can be filled with the reason
why the isPossible failed (i.e. in the case the method returns
false), may be nullpublic static boolean isPossible(ChangeableInstance instance, Node first, Node last, ProcessConstants.BlockType type)
instance - The changeable instance where the method is performed on.first - the first node of the blocklast - the last node of the blocktype - the BlockTypepublic static boolean isPossible(ChangeableInstance instance, Node first, Node last, ProcessConstants.BlockType type, CheckReport checkReport)
instance - The changeable instance where the method is performed on.first - the first node of the blocklast - the last node of the blocktype - the BlockTypecheckReport - a checkReport object which can be filled with the reason
why the isPossible failed (i.e. in the case the method returns
false), may be nullpublic static Node[] performOperation(SessionToken session, ChangeableTemplate template, Node first, Node last, ProcessConstants.BlockType type)
session - The session which is used to check for access rights on this
method.template - The template where the block is inserted.first - the first node of the blocklast - the last node of the blocktype - the BlockType (OR_BLOCK, AND_BLOCK, LOOP_BLOCK)public static Node[] performOperation(SessionToken session, ChangeableTemplate template, Node first, Node last, ProcessConstants.BlockType type, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.template - The template where the block is inserted.first - the first node of the blocklast - the last node of the blocktype - the BlockType (OR_BLOCK, AND_BLOCK, LOOP_BLOCK)updateManager - the manager who controls the update of the visual
graph components.public static Node[] performOperation(SessionToken session, ChangeableInstance instance, Node first, Node last, ProcessConstants.BlockType type)
session - The session which is used to check for access rights on this
method.instance - the changeable instance where the block is inserted.first - the first node of the blocklast - the last node of the blocktype - the BlockType (OR_BLOCK, AND_BLOCK, LOOP_BLOCK)public static Node[] performOperation(SessionToken session, ChangeableInstance instance, Node first, Node last, ProcessConstants.BlockType type, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.instance - the changeable instance where the block is inserted.first - the first node of the blocklast - the last node of the blocktype - the BlockType (OR_BLOCK, AND_BLOCK, LOOP_BLOCK)updateManager - the manager who controls the update of the visual
graph components.protected static Node[] performOperation(SessionToken session, ChangePrimitives processGraph, Node first, Node last, ProcessConstants.BlockType type, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.processGraph - an instance of type ChangeableTemplate or
ChangeableInstancefirst - the first node of the blocklast - the last node of the blocktype - the BlockType (OR_BLOCK, AND_BLOCK, LOOP_BLOCK)updateManager - the manager who controls the update of the visual
graph components.