public interface Template extends UserAttributeContainer, PluginDataContainer, java.io.Serializable, LocalisedString
null instead of ''. If you set a field to ''
the next time it is loaded null may be returned. This is due
to the lack of Oracle to distinguish between '' and null.
TODO describe me, attach image which describes the graph and its properties
(e.g. split node, corresponding block node etc.). TODO link interfaces, if
objects are referenced by an ID only.| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID
Generated ID for serialisation.
|
| Modifier and Type | Method and Description |
|---|---|
Configuration |
getConfiguration()
Gets the configuration of this process template that corresponds to the
configuration description. |
ConfigurationDescription |
getConfigurationDescription()
Gets the configuration description for this process template, that is a
description of all configuration values that are needed or supported in the
configuration.
|
int |
getConnector(int nodeID,
int dataElementID,
ActivityConstants.AccessType dataEdgeType)
Returns the connector of the given node which accesses the given data
element (reading or writing).
|
DataEdge |
getDataEdge(int nodeID,
int dataElementID,
ActivityConstants.AccessType type)
Returns the data edge which is identified by the given node, the
data element and the direction (reading or writing).
|
java.util.Set<StructuredDataEdge> |
getDataEdgeStructure()
Convenient method which returns all data edges including
their structural data.
|
DataElement |
getDataElement(int dataElementID)
Returns the data element with the given ID.
|
DataElement |
getDataElement(int nodeID,
int connector)
The data element which is associated to the given node and the given
connector of the node.
|
java.util.Set<DataElement> |
getDataElements()
Returns all data elements of the template.
|
int[] |
getDataElementsForNode(int nodeId,
ActivityConstants.AccessType... accessType)
Gets the IDs of all data elements which are accessed by the designated node with the designated
access types.
|
TemplateDeltaLayer |
getDeltaLayer()
Returns the delta layer of the template.
|
java.lang.String |
getDescription()
Returns the description of the process.
|
int[] |
getDisabledConnectors(int nodeID,
ActivityConstants.AccessType accessType)
(needs to be stored)
|
Edge |
getEdge(int srcNodeID,
int destNodeID,
ProcessConstants.EdgeType type)
Returns the edge which is identified by the given source nodeID, destination
nodeID and the edge type.
|
java.util.Set<StructuredEdge> |
getEdgeStructure(ProcessConstants.EdgeType... edgeTypes)
Convenient method which returns all edges including
their structural data.
|
Node |
getEndNode()
Returns the end node of the process.
|
java.util.UUID |
getID()
Returns the ID of the template.
|
java.lang.String |
getInstanceNameTemplate()
Gets a (string) template for the name of instances created on this process
template.
|
int[] |
getMinBlock(java.util.Set<Node> nodes)
Returns the minimal block of the given set of nodes.
|
java.lang.String |
getName()
Returns the name of the process.
|
Node |
getNode(int nodeID)
Returns the node with the given ID.
|
int |
getNodeBranchID(int nodeID)
Returns the ID of the branch the given node belongs to.
|
int |
getNodeCorrespondingBlockNodeID(int nodeID)
Returns the ID of the corresponding block node.
|
int |
getNodeIDForTopologicalID(int topologicalNodeID)
Returns the static node ID for the given topological node ID.
|
int[] |
getNodeIDsInArea(int first,
int last,
boolean includeBlocks)
Returns the IDs of the nodes which are in the area given
by the ID of a first and a last node on a branch.
|
int[] |
getNodeIDsWithActivityTemplate(java.util.UUID activityTemplateVersionID)
Returns all nodes which are linked with the given activity.
|
java.util.Set<Node> |
getNodes()
Returns a set of all nodes which are in the template.
|
int[] |
getNodesForDataElement(int deId,
ActivityConstants.AccessType... accessType)
Gets the IDs of all nodes accessing the designated data element with the designated access
types.
|
int |
getNodeSplitNodeID(int nodeID)
Returns the ID of the first split node of the branch of the given node,
following the control flow backward.
|
int |
getNodeTopologicalID(int nodeID)
Returns corresponding topological ID of the node.
|
ProcessConstants.NodeType |
getNodeType(int nodeID)
Returns the constant representing the type of the designated node.
|
java.util.Set<ProcessModelParameter> |
getParameters(ActivityConstants.AccessType accessType)
Returns the input or output parameters of the process.
|
int[] |
getPredByEdgeType(int nodeID,
ProcessConstants.EdgeType... type)
Returns the IDs of the nodes, which are direct predecessors of the node,
using edges of the given types.
|
java.lang.String |
getProcessType()
Returns the process type, which is a short term which kind of schema this
template represents.
|
Node |
getStartNode()
Returns the start node of the process.
|
int[] |
getSuccByEdgeType(int nodeID,
ProcessConstants.EdgeType... type)
Returns the IDs of the nodes, which are direct successors of the node, following
edges of the given types.
|
QualifiedAgent |
getSupervisorAgent()
Returns the supervisor agent of the process template.
|
Configuration |
getTestConfiguration()
Gets the (stand-alone) test configuration of this process template.
|
int[] |
getUnconnectedConnectors(int nodeID,
ActivityConstants.AccessType dataEdgeType)
(convenience method, calculated on the fly)
|
java.lang.String |
getVersion()
Returns the logic version of the template, which distinguishes between, for
instance, the major and minor versions (1.1.x vs. 1.x.y).
|
boolean |
isTransPredOf(int currentNodeID,
int potentialPredecessorID,
ProcessConstants.EdgeType... edgeType)
Returns true, if this node is a (transitive) predecessor of the given node,
respecting the given edge type.
|
getUserAttributes, getUserAttributeValue, removeUserAttributeValue, setUserAttributeValuegetPluginData, getPluginDatas, getSupportedPluginstoLocalisedStringstatic final long serialVersionUID
java.util.UUID getID()
java.lang.String getName()
java.lang.String getDescription()
ConfigurationDescription getConfigurationDescription()
Configuration getConfiguration()
configuration description. All
mandatory configuration entries need to have an appropriate value. These
configuration also needs to provide values for mandatory configuration
values of activities that are retrieved from the process configuration (see
ActivityConfiguration).Configuration getTestConfiguration()
normal (merged) configuration. Note that
the test configuration allows to override fixed values of the normal
configuration.java.lang.String getProcessType()
java.lang.String getVersion()
QualifiedAgent getSupervisorAgent()
java.util.Set<ProcessModelParameter> getParameters(ActivityConstants.AccessType accessType)
accessType - the type of the parameter, i.e. READ or WRITE accessTemplateDeltaLayer getDeltaLayer()
TemplateDeltaLayer for further detail.java.lang.String getInstanceNameTemplate()
Node getNode(int nodeID)
nodeID - The id of the node.Edge getEdge(int srcNodeID, int destNodeID, ProcessConstants.EdgeType type)
srcNodeID - The source node of the edge.destNodeID - The destination node of the edge.type - The type of the edge, e.g. control edge.DataElement getDataElement(int dataElementID)
dataElementID - The ID of the data element.DataEdge getDataEdge(int nodeID, int dataElementID, ActivityConstants.AccessType type)
nodeID - The node which reads or writes the data element.dataElementID - The data element being accessed by the node.type - The access type of the node (reading, or writing)DataElement getDataElement(int nodeID, int connector)
Node. If the template does not contain a data element specified
by nodeID and connector, the method returns null.nodeID - The node which accesses the data element.connector - The connector of the given node, which is associated
with the data element.Node getStartNode()
Node getEndNode()
java.util.Set<Node> getNodes()
java.util.Set<DataElement> getDataElements()
java.util.Set<StructuredEdge> getEdgeStructure(ProcessConstants.EdgeType... edgeTypes)
edgeTypes - The edge types to consider.java.util.Set<StructuredDataEdge> getDataEdgeStructure()
ProcessConstants.NodeType getNodeType(int nodeID)
nodeID - The ID of the node.ProcessConstants.NodeTypeint getNodeTopologicalID(int nodeID)
nodeID - The (static) ID of the node.int getNodeIDForTopologicalID(int topologicalNodeID)
getNodeTopologicalID(int).topologicalNodeID - The topological ID of the node.int getNodeBranchID(int nodeID)
nodeID - The id of the node.int getNodeSplitNodeID(int nodeID)
nodeID - The id of the node.int getNodeCorrespondingBlockNodeID(int nodeID)
nodeID - The id of the node.int[] getDataElementsForNode(int nodeId,
ActivityConstants.AccessType... accessType)
nodeId - The ID of the node which accesses the data elements.accessType - The types of access of the node (e.g. reading and/or writing).int[] getNodesForDataElement(int deId,
ActivityConstants.AccessType... accessType)
deId - The ID of the data element which is accessed.accessType - The types of access of the node (e.g. reading and/or writing).int getConnector(int nodeID,
int dataElementID,
ActivityConstants.AccessType dataEdgeType)
Node for further details.nodeID - The ID of the node.dataElementID - The ID of the data element.dataEdgeType - The type of the data edge which is connected to the
returned connector.CommonConstants.INT_ID_NOT_EXISTING.int[] getUnconnectedConnectors(int nodeID,
ActivityConstants.AccessType dataEdgeType)
nodeID - The ID of the node.dataEdgeType - The type of the data edge which need to be connected.int[] getDisabledConnectors(int nodeID,
ActivityConstants.AccessType accessType)
nodeID - The ID of the node.accessType - The activity related access type that could be disabledint[] getNodeIDsWithActivityTemplate(java.util.UUID activityTemplateVersionID)
activityTemplateVersionID - The ID of the activity template.int[] getNodeIDsInArea(int first,
int last,
boolean includeBlocks)
first - The first node of the area.last - The last node of the area.includeBlocks - If true, the result includes nodes on blocks which are in the area, too.int[] getSuccByEdgeType(int nodeID,
ProcessConstants.EdgeType... type)
nodeID - The ID of the node.type - The edge types to consider.ProcessConstants.EdgeTypeint[] getPredByEdgeType(int nodeID,
ProcessConstants.EdgeType... type)
nodeID - The ID of the node.type - The edge types to consider.Nodeboolean isTransPredOf(int currentNodeID,
int potentialPredecessorID,
ProcessConstants.EdgeType... edgeType)
currentNodeID - The node.potentialPredecessorID - The potential predecessor.edgeType - The edge types to consider.int[] getMinBlock(java.util.Set<Node> nodes)
nodes - The set of nodes, the minimal block will be build upon.