Class NESTGraphIDManagerImpl
java.lang.Object
de.uni_trier.wi2.procake.data.object.nest.utils.impl.NESTUtils<NESTGraphObject>
de.uni_trier.wi2.procake.data.object.nest.utils.impl.NESTGraphIDManagerImpl
- All Implemented Interfaces:
NESTGraphIDManager
public class NESTGraphIDManagerImpl
extends NESTUtils<NESTGraphObject>
implements NESTGraphIDManager
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends NESTEdgeObject>
TassignUniqueEdgeId
(T edge) Assigns the given edge a new unique edge id.void
Ensures that the graph exclusively consists of graph items with unique ids.<T extends NESTNodeObject>
TassignUniqueNodeId
(T node) Assigns the given node a new unique node id.boolean
containsId
(String id) Checks if the graph conatins a given id.Generates a new unique id for a controlflow node.Generates a pair of two new unique and corresponding ids for a controlflow start and end node.Generates a new unique data node id.Generates a new unique edge id.Generates a new unique node id.Generates a new unique subworkflow node id.Generates a new unique task node id.Generates a new unique workflow node id.boolean
Checks if the graph exclusively consists of graph items with valid and unique ids.boolean
Checks if the given graph item has a valid id with respect to the prefix.boolean
isUniqueId
(String id) Checks if the given id is unique.
-
Constructor Details
-
NESTGraphIDManagerImpl
Constructor.- Parameters:
graph
-
-
-
Method Details
-
assignUniqueIds
public void assignUniqueIds()Description copied from interface:NESTGraphIDManager
Ensures that the graph exclusively consists of graph items with unique ids.- Specified by:
assignUniqueIds
in interfaceNESTGraphIDManager
-
assignUniqueNodeId
Description copied from interface:NESTGraphIDManager
Assigns the given node a new unique node id.- Specified by:
assignUniqueNodeId
in interfaceNESTGraphIDManager
- Returns:
- node with unique id
-
assignUniqueEdgeId
Description copied from interface:NESTGraphIDManager
Assigns the given edge a new unique edge id.- Specified by:
assignUniqueEdgeId
in interfaceNESTGraphIDManager
- Returns:
- edge with unique id
-
hasUniqueIds
public boolean hasUniqueIds()Description copied from interface:NESTGraphIDManager
Checks if the graph exclusively consists of graph items with valid and unique ids.- Specified by:
hasUniqueIds
in interfaceNESTGraphIDManager
- Returns:
true
if all ids in the graph are valid and unique,false
otherwise
-
hasValidId
Description copied from interface:NESTGraphIDManager
Checks if the given graph item has a valid id with respect to the prefix.- Specified by:
hasValidId
in interfaceNESTGraphIDManager
- Returns:
true
if the id is valid,false
otherwise
-
getNewUniqueNodeId
Description copied from interface:NESTGraphIDManager
Generates a new unique node id.- Specified by:
getNewUniqueNodeId
in interfaceNESTGraphIDManager
- Returns:
- unique node id
-
getNewUniqueTaskNodeId
Description copied from interface:NESTGraphIDManager
Generates a new unique task node id.- Specified by:
getNewUniqueTaskNodeId
in interfaceNESTGraphIDManager
- Returns:
- unique task node id
-
getNewUniqueDataNodeId
Description copied from interface:NESTGraphIDManager
Generates a new unique data node id.- Specified by:
getNewUniqueDataNodeId
in interfaceNESTGraphIDManager
- Returns:
- unique data node id
-
getNewUniqueSubworkflowNodeId
Description copied from interface:NESTGraphIDManager
Generates a new unique subworkflow node id.- Specified by:
getNewUniqueSubworkflowNodeId
in interfaceNESTGraphIDManager
- Returns:
- unique subworkflow node id
-
getNewUniqueWorkflowNodeId
Description copied from interface:NESTGraphIDManager
Generates a new unique workflow node id.- Specified by:
getNewUniqueWorkflowNodeId
in interfaceNESTGraphIDManager
- Returns:
- unique workflow node id
-
getNewUniqueEdgeId
Description copied from interface:NESTGraphIDManager
Generates a new unique edge id.- Specified by:
getNewUniqueEdgeId
in interfaceNESTGraphIDManager
- Returns:
- unique edge id
-
getNewUniqueControlflowNodeIdPair
Description copied from interface:NESTGraphIDManager
Generates a pair of two new unique and corresponding ids for a controlflow start and end node.- Specified by:
getNewUniqueControlflowNodeIdPair
in interfaceNESTGraphIDManager
- Returns:
- key-value-pair with a new unique start node id (key) and a new unique end node id (value)
-
getNewUniqueControlflowNodeId
Description copied from interface:NESTGraphIDManager
Generates a new unique id for a controlflow node.- Specified by:
getNewUniqueControlflowNodeId
in interfaceNESTGraphIDManager
- Returns:
- unique controlflow node id
-
containsId
Description copied from interface:NESTGraphIDManager
Checks if the graph conatins a given id.- Specified by:
containsId
in interfaceNESTGraphIDManager
- Returns:
true
if the id is contained,false
otherwise
-
isUniqueId
Description copied from interface:NESTGraphIDManager
Checks if the given id is unique.- Specified by:
isUniqueId
in interfaceNESTGraphIDManager
- Returns:
true
if the id is unique,false
otherwise
-