public class AddSystemDataFlow
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.logging.Logger |
logger
a Logger
|
| Constructor and Description |
|---|
AddSystemDataFlow() |
| Modifier and Type | Method and Description |
|---|---|
protected static boolean |
isPossible(Instance instance,
int producerNodeID,
SystemDataProducer systemDataType,
int consumerNodeID,
CheckReport checkReport)
Check if it is possible (concerning structural correctness and state based
correctness) to add a system data flow of the given type between the given
nodes.
|
static boolean |
isPossible(Instance instance,
int producerNodeID,
SystemDataProducer systemDataType,
int consumerNodeID,
java.lang.String inputParameterName)
Check if it is possible (concerning structural correctness and state based
correctness) to add a system data flow of the given type between the given
nodes.
|
static boolean |
isPossible(Instance instance,
int producerNodeID,
SystemDataProducer systemDataType,
int consumerNodeID,
java.lang.String inputParameterName,
CheckReport checkReport)
Check if it is possible (concerning structural correctness and state based
correctness) to add a system data flow of the given type between the given
nodes.
|
protected static boolean |
isPossible(Template template,
int producerNodeID,
SystemDataProducer systemDataType,
int consumerNodeID,
CheckReport checkReport)
Check if it is possible (concerning structural correctness) to add a system
data flow of the given type between the given nodes.
|
static boolean |
isPossible(Template template,
int producerNodeID,
SystemDataProducer systemDataType,
int consumerNodeID,
java.lang.String inputParameterName)
Check if it is possible (concerning structural correctness) to add a
system data flow between the given nodes.
|
static boolean |
isPossible(Template template,
int producerNodeID,
SystemDataProducer systemDataType,
int consumerNodeID,
java.lang.String inputParameterName,
CheckReport checkReport)
Check if it is possible (concerning structural correctness) to add a
system data flow of the given type between the given nodes.
|
static void |
performOperation(SessionToken session,
ChangeableInstance instance,
int producerNodeID,
SystemDataProducer systemDataType,
int consumerNodeID,
java.lang.String inputParameterName)
Adds a system data flow of the given type between the given nodes in the
given instance.
|
static void |
performOperation(SessionToken session,
ChangeableInstance instance,
int producerNodeID,
SystemDataProducer systemDataType,
int consumerNodeID,
java.lang.String inputParameterName,
UpdateManager updateManager)
Adds a system data flow of the given type between the given nodes in the
given instance.
|
static void |
performOperation(SessionToken session,
ChangeableTemplate template,
int producerNodeID,
SystemDataProducer systemDataType,
int consumerNodeID,
java.lang.String inputParameterName)
Adds a system data flow of the given type between the given nodes.
|
static void |
performOperation(SessionToken session,
ChangeableTemplate template,
int producerNodeID,
SystemDataProducer systemDataType,
int consumerNodeID,
java.lang.String inputParameterName,
UpdateManager updateManager)
Adds a system data flow of the given type between the given nodes.
|
protected static void |
performOperation(SessionToken session,
ChangePrimitives processGraph,
int producerNodeID,
SystemDataProducer systemDataType,
int consumerNodeID,
java.lang.String inputParameterName,
UpdateManager updateManager)
Worker method to do the structural changes for both changeable templates
and changeable instances.
|
public static boolean isPossible(Template template, int producerNodeID, SystemDataProducer systemDataType, int consumerNodeID, java.lang.String inputParameterName)
template - The corresponding templateproducerNodeID - the node which produces the system parameter.systemDataType - the type of the system data
SystemDataProducerconsumerNodeID - the node which consumes the system parameter.inputParameterName - the name of the parameter which must exist in the
the consumer nodepublic static boolean isPossible(Template template, int producerNodeID, SystemDataProducer systemDataType, int consumerNodeID, java.lang.String inputParameterName, CheckReport checkReport)
template - The corresponding templateproducerNodeID - the node which produces the system parameter.systemDataType - the type of the system data
SystemDataProducerconsumerNodeID - the node which consumes the system parameter.inputParameterName - the name of the parameter which must exist in the
the consumer nodecheckReport - 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 nullprotected static boolean isPossible(Template template, int producerNodeID, SystemDataProducer systemDataType, int consumerNodeID, CheckReport checkReport)
template - The corresponding templateproducerNodeID - the node which produces the system parameter.systemDataType - the type of the system data
SystemDataProducerconsumerNodeID - the node which consumes the system parameter.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 isPossible(Instance instance, int producerNodeID, SystemDataProducer systemDataType, int consumerNodeID, java.lang.String inputParameterName)
instance - The corresponding instanceproducerNodeID - the node which produces the system parameter.systemDataType - the type of the system data
SystemDataProducerconsumerNodeID - the node which consumes the system parameter.inputParameterName - the name of the parameter which must exist in the
the consumer nodepublic static boolean isPossible(Instance instance, int producerNodeID, SystemDataProducer systemDataType, int consumerNodeID, java.lang.String inputParameterName, CheckReport checkReport)
instance - The corresponding changeable instanceproducerNodeID - the node which produces the system parameter.systemDataType - the type of the system data
SystemDataProducerconsumerNodeID - the node which consumes the system parameter.inputParameterName - the name of the parameter which must exist in the
the consumer nodecheckReport - 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 nullprotected static boolean isPossible(Instance instance, int producerNodeID, SystemDataProducer systemDataType, int consumerNodeID, CheckReport checkReport)
instance - The corresponding changeable instanceproducerNodeID - the node which produces the system parameter.systemDataType - the type of the system data
SystemDataProducerconsumerNodeID - the node which consumes the system parameter.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 void performOperation(SessionToken session, ChangeableTemplate template, int producerNodeID, SystemDataProducer systemDataType, int consumerNodeID, java.lang.String inputParameterName)
session - The session which is used to check for access rights on this
method.template - The related changeable template.producerNodeID - the node which produces the system parameter.systemDataType - the type of the system data
SystemDataProducerconsumerNodeID - the node which consumes the system parameter.inputParameterName - the name of the parameter which must exist in the
the consumer nodepublic static void performOperation(SessionToken session, ChangeableTemplate template, int producerNodeID, SystemDataProducer systemDataType, int consumerNodeID, java.lang.String inputParameterName, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.template - The related changeable template.producerNodeID - the node which produces the system parameter.systemDataType - the type of the system data
SystemDataProducerconsumerNodeID - the node which consumes the system parameter.inputParameterName - the name of the parameter which must exist in the
the consumer nodeupdateManager - The UpdateManager where modifications are logged, may
be nullpublic static void performOperation(SessionToken session, ChangeableInstance instance, int producerNodeID, SystemDataProducer systemDataType, int consumerNodeID, java.lang.String inputParameterName)
session - The session which is used to check for access rights on this
method.instance - The related changeable instance.producerNodeID - the node which produces the system parameter.systemDataType - the type of the system data
SystemDataProducerconsumerNodeID - the node which consumes the system parameter.inputParameterName - the name of the parameter which must exist in the
the consumer nodepublic static void performOperation(SessionToken session, ChangeableInstance instance, int producerNodeID, SystemDataProducer systemDataType, int consumerNodeID, java.lang.String inputParameterName, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.instance - The related changeable instance.producerNodeID - the node which produces the system parameter.systemDataType - the type of the system data
SystemDataProducerconsumerNodeID - the node which consumes the system parameter.inputParameterName - the name of the parameter which must exist in the
the consumer nodeupdateManager - the manager which is responsible for the graphical
adaptation of the template (maybe null)protected static void performOperation(SessionToken session, ChangePrimitives processGraph, int producerNodeID, SystemDataProducer systemDataType, int consumerNodeID, java.lang.String inputParameterName, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.processGraph - an instance of type ChangeableTemplate or
ChangeableInstanceproducerNodeID - the node which produces the system parameter.systemDataType - the type of the system data
SystemDataProducerconsumerNodeID - the node which consumes the system parameter.inputParameterName - the name of the parameter which must exist in the
the consumer nodeupdateManager - the manager which is responsible for the graphical
adaptation of the template (maybe null)