public class SwapDataElementParameterConnections
extends java.lang.Object
ReconnectDataEdge
instead| Constructor and Description |
|---|
SwapDataElementParameterConnections() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isPossible(ChangeableInstance instance,
int nodeID,
int dataElementID1,
DataEdge dataEdge1,
int dataElementID2,
DataEdge dataEdge2)
Check if it is possible to swap the parameter data element connections of
the given data edges in the given instance.
|
static boolean |
isPossible(ChangeableInstance instance,
int nodeID,
int dataElementID1,
DataEdge dataEdge1,
int dataElementID2,
DataEdge dataEdge2,
CheckReport checkReport)
Check if it is possible to swap the parameter data element connections of
the given data edges in the given instance.
|
static boolean |
isPossible(Template template,
int nodeID,
int dataElementID1,
DataEdge dataEdge1,
int dataElementID2,
DataEdge dataEdge2)
Check if it is possible (concerning structural correctness) to swap the
parameter data element connections of the given data edges in the given
template.
|
static boolean |
isPossible(Template template,
int nodeID,
int dataElementID1,
DataEdge dataEdge1,
int dataElementID2,
DataEdge dataEdge2,
CheckReport checkReport)
Check if it is possible (concerning structural correctness) to swap the
parameter data element connections of the given data edges in the given
template.
|
static void |
performOperation(SessionToken session,
ChangeableInstance instance,
int nodeID,
int dataElementID1,
DataEdge dataEdge1,
int dataElementID2,
DataEdge dataEdge2)
Swaps the parameter data element connections of the given data edges in the
given instance.
|
static void |
performOperation(SessionToken session,
ChangeableInstance instance,
int nodeID,
int dataElementID1,
DataEdge dataEdge1,
int dataElementID2,
DataEdge dataEdge2,
UpdateManager updateManager)
Swaps the parameter data element connections of the given data edges in the
given instance.
|
static void |
performOperation(SessionToken session,
ChangeableTemplate template,
int nodeID,
int dataElementID1,
DataEdge dataEdge1,
int dataElementID2,
DataEdge dataEdge2)
Swaps the parameter data element connections of the given data edges in the
given template.
|
static void |
performOperation(SessionToken session,
ChangeableTemplate template,
int nodeID,
int dataElementID1,
DataEdge dataEdge1,
int dataElementID2,
DataEdge dataEdge2,
UpdateManager updateManager)
Swaps the parameter data element connections of the given data edges in the
given template.
|
protected static void |
performOperation(SessionToken session,
ChangePrimitives processGraph,
int nodeID,
int dataElementID1,
DataEdge dataEdge1,
int dataElementID2,
DataEdge dataEdge2,
UpdateManager updateManager)
Worker method to do the structural changes for both changeable templates
and changeable instances.
|
public static boolean isPossible(Template template, int nodeID, int dataElementID1, DataEdge dataEdge1, int dataElementID2, DataEdge dataEdge2)
template - the template where the change operation is performed on.nodeID - the node where data edge 1 and 2 is connected withdataElementID1 - the data element where the data edge 1 is connected
withdataEdge1 - the data edge 1 objectdataElementID2 - the data element where the data edge 2 is connected
withdataEdge2 - the data edge 2 objectpublic static boolean isPossible(Template template, int nodeID, int dataElementID1, DataEdge dataEdge1, int dataElementID2, DataEdge dataEdge2, CheckReport checkReport)
template - the template where the change operation is performed on.nodeID - the node where data edge 1 and 2 is connected withdataElementID1 - the data element where the data edge 1 is connected
withdataEdge1 - the data edge 1 objectdataElementID2 - the data element where the data edge 2 is connected
withdataEdge2 - the data edge 2 objectcheckReport - 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, int nodeID, int dataElementID1, DataEdge dataEdge1, int dataElementID2, DataEdge dataEdge2)
instance - the changeable instance where the change operation is
performed on.nodeID - the node where data edge 1 and 2 is connected withdataElementID1 - the data element where the data edge 1 is connected
withdataEdge1 - the data edge 1 objectdataElementID2 - the data element where the data edge 2 is connected
withdataEdge2 - the data edge 2 objectpublic static boolean isPossible(ChangeableInstance instance, int nodeID, int dataElementID1, DataEdge dataEdge1, int dataElementID2, DataEdge dataEdge2, CheckReport checkReport)
instance - the changeable instance where the change operation is
performed on.nodeID - the node where data edge 1 and 2 is connected withdataElementID1 - the data element where the data edge 1 is connected
withdataEdge1 - the data edge 1 objectdataElementID2 - the data element where the data edge 2 is connected
withdataEdge2 - the data edge 2 objectcheckReport - 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, int nodeID, int dataElementID1, DataEdge dataEdge1, int dataElementID2, DataEdge dataEdge2)
session - The session which is used to check for access rights on this
method.template - the template where the change operation is performed on.nodeID - the node where data edge 1 and 2 is connected withdataElementID1 - the data element where the data edge 1 is connected
withdataEdge1 - the data edge 1 objectdataElementID2 - the data element where the data edge 2 is connected
withdataEdge2 - the data edge 2 objectpublic static void performOperation(SessionToken session, ChangeableTemplate template, int nodeID, int dataElementID1, DataEdge dataEdge1, int dataElementID2, DataEdge dataEdge2, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.template - the template where the change operation is performed on.nodeID - the node where data edge 1 and 2 is connected withdataElementID1 - the data element where the data edge 1 is connected
withdataEdge1 - the data edge 1 objectdataElementID2 - the data element where the data edge 2 is connected
withdataEdge2 - the data edge 2 objectupdateManager - the manager who controls the update of the visual
graph components (maybe null).public static void performOperation(SessionToken session, ChangeableInstance instance, int nodeID, int dataElementID1, DataEdge dataEdge1, int dataElementID2, DataEdge dataEdge2)
session - The session which is used to check for access rights on this
method.instance - the changeable instance where the change operation is performed on.nodeID - the node where data edge 1 and 2 is connected withdataElementID1 - the data element where the data edge 1 is connected
withdataEdge1 - the data edge 1 objectdataElementID2 - the data element where the data edge 2 is connected
withdataEdge2 - the data edge 2 objectpublic static void performOperation(SessionToken session, ChangeableInstance instance, int nodeID, int dataElementID1, DataEdge dataEdge1, int dataElementID2, DataEdge dataEdge2, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.instance - the changeable instance where the change operation is performed on.nodeID - the node where data edge 1 and 2 is connected withdataElementID1 - the data element where the data edge 1 is connected
withdataEdge1 - the data edge 1 objectdataElementID2 - the data element where the data edge 2 is connected
withdataEdge2 - the data edge 2 objectupdateManager - the manager who controls the update of the visual
graph components (maybe null).protected static void performOperation(SessionToken session, ChangePrimitives processGraph, int nodeID, int dataElementID1, DataEdge dataEdge1, int dataElementID2, DataEdge dataEdge2, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.processGraph - an instance of type ChangeableTemplate or
ChangeableInstancenodeID - the node where data edge 1 and 2 is connected withdataElementID1 - the data element where the data edge 1 is connected
withdataEdge1 - the data edge 1 objectdataElementID2 - the data element where the data edge 2 is connected
withdataEdge2 - the data edge 2 objectupdateManager - the manager who controls the update of the visual
graph components (maybe null).