public class InsertEmptyBlock
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.logging.Logger |
logger
a Logger
|
| Constructor and Description |
|---|
InsertEmptyBlock() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isPossible(ChangeableInstance instance,
Node pred,
Node succ)
Checks if it is possible (concerning structural and state-based
correctness) to insert an empty block in the given instance.
|
static boolean |
isPossible(ChangeableInstance instance,
Node pred,
Node succ,
CheckReport checkReport)
Checks if it is possible (concerning structural and state-based
correctness) to insert an empty block in the given instance.
|
static boolean |
isPossible(Template template,
Node pred,
Node succ)
Checks if it is possible (concerning structural correctness) to insert an
empty block in the given template.
|
static boolean |
isPossible(Template template,
Node pred,
Node succ,
CheckReport checkReport)
Checks if it is possible (concerning structural correctness) to insert an
empty block in the given template.
|
static Node[] |
performOperation(SessionToken session,
ChangeableInstance instance,
Node pred,
Node succ,
ProcessConstants.BlockType type)
Inserts an empty block of the given type in the instance.
|
static Node[] |
performOperation(SessionToken session,
ChangeableInstance instance,
Node pred,
Node succ,
ProcessConstants.BlockType type,
UpdateManager updateManager)
Inserts an empty block of the given type in the instance (with
updateManager).
|
static Node[] |
performOperation(SessionToken session,
ChangeableTemplate template,
Node pred,
Node succ,
ProcessConstants.BlockType type)
Inserts an empty block of the given type in the template.
|
static Node[] |
performOperation(SessionToken session,
ChangeableTemplate template,
Node pred,
Node succ,
ProcessConstants.BlockType type,
UpdateManager updateManager)
Inserts an empty block of the given type in the template (with
updateManager).
|
protected static Node[] |
performOperation(SessionToken session,
ChangePrimitives processGraph,
Node pred,
Node succ,
ProcessConstants.BlockType type,
UpdateManager updateManager)
Worker method to do the structural changes for both changeable templates
and changeable instances.
|
public static boolean isPossible(Template template, Node pred, Node succ)
template - the template the change is performed onpred - the node after which the empty block should be insertedsucc - the node before which the empty block should be insertedpublic static boolean isPossible(Template template, Node pred, Node succ, CheckReport checkReport)
template - he template the change is performed onpred - the node after which the empty block should be insertedsucc - the node before which the empty block should be insertedcheckReport - 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 pred, Node succ)
instance - the changeable instance the change is performed onpred - the node after which the empty block should be insertedsucc - the node before which the empty block should be insertedpublic static boolean isPossible(ChangeableInstance instance, Node pred, Node succ, CheckReport checkReport)
instance - the changeable instance the change is performed onpred - the node after which the empty block should be insertedsucc - the node before which the empty block should be insertedcheckReport - 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 pred, Node succ, ProcessConstants.BlockType type)
session - The session which is used to check for access rights on this
method.template - the template where the change is performed onpred - the node after which the empty block should be insertedsucc - the node before which the empty block should be insertedtype - the type of the block to insertpublic static Node[] performOperation(SessionToken session, ChangeableTemplate template, Node pred, Node succ, ProcessConstants.BlockType type, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.template - the template where the change is performed onpred - the node after which the empty block should be insertedsucc - the node before which the empty block should be insertedtype - the type of the block to insertupdateManager - the manager who controls the update of the visual
graph components.public static Node[] performOperation(SessionToken session, ChangeableInstance instance, Node pred, Node succ, ProcessConstants.BlockType type)
session - The session which is used to check for access rights on this
method.instance - the changeable instance where the change is performed onpred - the node after which the empty block should be insertedsucc - the node before which the empty block should be insertedtype - the type of the block to insertpublic static Node[] performOperation(SessionToken session, ChangeableInstance instance, Node pred, Node succ, 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 change is performed onpred - the node after which the empty block should be insertedsucc - the node before which the empty block should be insertedtype - the type of the block to insertupdateManager - the manager who controls the update of the visual
graph components.protected static Node[] performOperation(SessionToken session, ChangePrimitives processGraph, Node pred, Node succ, 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
ChangeableInstancepred - the node after which the empty block should be insertedsucc - the node before which the empty block should be insertedtype - the type of the block to insertupdateManager - the manager who controls the update of the visual
graph components.