public class MoveNodes
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.logging.Logger |
logger
a Logger
|
| Constructor and Description |
|---|
MoveNodes() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isPossible(ChangeableInstance instance,
Node first,
Node last,
Node pred,
Node succ)
Check if it is possible (concerning structural and state-based aspects) to
move the nodes between first and last to the position between pred and succ
in the given instance.
|
static boolean |
isPossible(ChangeableInstance instance,
Node first,
Node last,
Node pred,
Node succ,
CheckReport checkReport)
Check if it is possible (concerning structural and state-based aspects) to
move the nodes between first and last to the position between pred and succ
in the given instance.
|
static boolean |
isPossible(ChangeableTemplate template,
Node first,
Node last,
Node pred,
Node succ)
Check if it is possible (concerning structural aspects) to move the nodes
between first and last to the position between pred and succ in the given
template.
|
static boolean |
isPossible(Template template,
Node first,
Node last,
Node pred,
Node succ,
CheckReport checkReport)
Check if it is possible (concerning structural aspects) to move the nodes
between first and last to the position between pred and succ in the given
template.
|
static boolean |
isValidMoveBlock(ChangeableInstance instance,
Node first,
Node last)
Checks if the block given by first and last is valid (concerning structural
and state-based aspects) for a move operation on the given instance.
|
static boolean |
isValidMoveBlock(ChangeableInstance instance,
Node first,
Node last,
CheckReport checkReport)
Checks if the block given by first and last is valid (concerning structural
and state-based aspects) for a move operation on the given instance.
|
static boolean |
isValidMoveBlock(Template template,
Node first,
Node last)
Checks if the block given by first and last is valid (concerning structural
aspects) for a move operation on the given template.
|
static boolean |
isValidMoveBlock(Template template,
Node first,
Node last,
CheckReport checkReport)
Checks if the block given by first and last is valid (concerning structural
aspects) for a move operation on the given template.
|
static void |
performOperation(SessionToken session,
ChangeableInstance instance,
Node first,
Node last,
Node pred,
Node succ)
Moves the nodes between first and last to the position between pred and
succ in the instance.
|
static void |
performOperation(SessionToken session,
ChangeableInstance instance,
Node first,
Node last,
Node pred,
Node succ,
UpdateManager updateManager)
Moves the nodes between first and last to the position between pred and succ
|
static void |
performOperation(SessionToken session,
ChangeableTemplate template,
Node first,
Node last,
Node pred,
Node succ)
Moves the nodes between first and last to the position between pred and
succ in the template.
|
static void |
performOperation(SessionToken session,
ChangeableTemplate template,
Node first,
Node last,
Node pred,
Node succ,
UpdateManager updateManager)
Moves the nodes between first and last to the position between pred and
succ in the template.
|
protected static void |
performOperation(SessionToken session,
ChangePrimitives processGraph,
Node first,
Node last,
Node pred,
Node succ,
UpdateManager updateManager)
Worker method to do the structural changes for both changeable templates
and changeable instances.
|
public static boolean isPossible(ChangeableTemplate template, Node first, Node last, Node pred, Node succ)
template - The template where the method is performed on.first - the first node of the set which should be movedlast - the last node of the set which should be movedpred - The predecessor of the target area.succ - The successor of the target area.public static boolean isPossible(Template template, Node first, Node last, Node pred, Node succ, CheckReport checkReport)
template - The template where the method is performed on.first - the first node of the set which should be movedlast - the last node of the set which should be movedpred - The predecessor of the target area.succ - The successor of the target area.checkReport - 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 isValidMoveBlock(Template template, Node first, Node last)
template - The template where the method is performed on.first - the first node of the block which should be movedlast - the last node of the block which should be movedpublic static boolean isValidMoveBlock(Template template, Node first, Node last, CheckReport checkReport)
template - The template where the method is performed on.first - the first node of the block which should be movedlast - the last node of the block which should be movedcheckReport - 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, Node pred, Node succ)
instance - The changeable instance where the method is performed on.first - the first node of the set which should be movedlast - the last node of the set which should be movedpred - The predecessor of the target area.succ - The successor of the target area.public static boolean isPossible(ChangeableInstance instance, Node first, Node last, Node pred, Node succ, CheckReport checkReport)
instance - The changeable instance where the method is performed on.first - the first node of the set which should be movedlast - the last node of the set which should be movedpred - The predecessor of the target area.succ - The successor of the target area.checkReport - 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 isValidMoveBlock(ChangeableInstance instance, Node first, Node last)
instance - the changeable instance where the method is performed on.first - the first node of the block which should be movedlast - the last node of the block which should be movedpublic static boolean isValidMoveBlock(ChangeableInstance instance, Node first, Node last, CheckReport checkReport)
instance - The changeable instance where the method is performed on.first - the first node of the block which should be movedlast - the last node of the block which should be movedcheckReport - 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 void performOperation(SessionToken session, ChangeableTemplate template, Node first, Node last, Node pred, Node succ)
session - The session which is used to check for access rights on this
method.template - The changeable template where the method is performed on.first - the first node of the set which will be movedlast - the last node of the set which will be movedpred - The predecessor of the target area.succ - The successor of the target area.public static void performOperation(SessionToken session, ChangeableTemplate template, Node first, Node last, Node pred, Node succ, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.template - The changeable template where the method is performed on.first - the first node of the set which will be movedlast - the last node of the set which will be movedpred - The predecessor of the target area.succ - The successor of the target area.updateManager - The UpdateManager where modifications are logged, may
be nullpublic static void performOperation(SessionToken session, ChangeableInstance instance, Node first, Node last, Node pred, Node succ)
session - The session which is used to check for access rights on this
method.instance - The changeable instance where the method is performed on.first - the first node of the set which will be movedlast - the last node of the set which will be movedpred - The predecessor of the target area.succ - The successor of the target area.public static void performOperation(SessionToken session, ChangeableInstance instance, Node first, Node last, Node pred, Node succ, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.instance - The changeable instance where the method is performed on.first - the first node of the set which will be movedlast - the last node of the set which will be movedpred - The predecessor of the target area.succ - The successor of the target area.updateManager - The UpdateManager where modifications are logged, may
be nullprotected static void performOperation(SessionToken session, ChangePrimitives processGraph, Node first, Node last, Node pred, Node succ, 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 set which should be movedlast - the last node of the set which should be movedpred - The predecessor of the target area.succ - The successor of the target area.updateManager - The UpdateManager where modifications are logged, may
be null