public class ToggleSyncEdge
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.logging.Logger |
logger
a Logger
|
| Constructor and Description |
|---|
ToggleSyncEdge() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isPossible(ChangeableInstance instance,
Node pred,
Node succ)
Check, if a sync edge between the given nodes is possible (concerning
structural and state-based correctness) in the instance.
|
static boolean |
isPossible(ChangeableInstance instance,
Node pred,
Node succ,
CheckReport checkReport)
Check, if a sync edge between the given nodes is possible (concerning
structural and state-based correctness)in the instance.
|
static boolean |
isPossible(Template template,
Node pred,
Node succ)
Check, if a sync edge between the given nodes is possible (concerning
structural correctness).
|
static boolean |
isPossible(Template template,
Node pred,
Node succ,
CheckReport checkReport)
Check, if a sync edge between the given nodes is possible (concerning
structural correctness) in the template.
|
static void |
performOperation(SessionToken session,
ChangeableInstance instance,
Node pred,
Node succ)
Deletes the sync edge in the instance if there already exists one.
|
static void |
performOperation(SessionToken session,
ChangeableInstance instance,
Node pred,
Node succ,
UpdateManager updateManager)
Deletes the sync edge in the instance if there already exists one.
|
static void |
performOperation(SessionToken session,
ChangeableTemplate template,
Node pred,
Node succ)
Deletes the sync edge in the template if there already exists one.
|
static void |
performOperation(SessionToken session,
ChangeableTemplate template,
Node pred,
Node succ,
UpdateManager updateManager)
Deletes the sync edge in the template if there already exists one.
|
protected static void |
performOperation(SessionToken session,
ChangePrimitives processGraph,
Node pred,
Node succ,
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 - where the sync-edge should be toggledpred - the source of the sync-edgesucc - the target of the sync-edgepublic static boolean isPossible(Template template, Node pred, Node succ, CheckReport checkReport)
template - the template where the sync-edge should be toggledpred - the source of the sync-edgesucc - the target of the sync-edgecheckReport - 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 where the sync-edge should be
toggledpred - the source of the sync-edgesucc - the target of the sync-edgepublic static boolean isPossible(ChangeableInstance instance, Node pred, Node succ, CheckReport checkReport)
instance - the changeable instance where the sync-edge should be
toggledpred - the source of the sync-edgesucc - the target of the sync-edgecheckReport - 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 pred, Node succ)
session - The session which is used to check for access rights on this
method.template - the template where the sync-edge is toggledpred - the source of the sync-edgesucc - the target of the sync-edgepublic static void performOperation(SessionToken session, ChangeableTemplate template, Node pred, Node succ, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.template - the template where the sync-edge is toggledpred - the source of the sync-edgesucc - the target of the sync-edgeupdateManager - The UpdateManager where modifications are logged, may
be nullpublic static void performOperation(SessionToken session, ChangeableInstance instance, Node pred, Node succ)
session - The session which is used to check for access rights on this
method.instance - the changeable instance where the sync-edge is toggledpred - the source of the sync-edgesucc - the target of the sync-edgepublic static void performOperation(SessionToken session, ChangeableInstance instance, Node pred, Node succ, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.instance - the instance where the sync-edge is toggledpred - the source of the sync-edgesucc - the target of the sync-edgeupdateManager - The UpdateManager where modifications are logged, may
be nullprotected static void performOperation(SessionToken session, ChangePrimitives processGraph, 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
ChangeableInstancepred - the source of the sync-edgesucc - the target of the sync-edgeupdateManager - The UpdateManager where modifications are logged, may
be null