Interface NESTGraphIDManager
-
- All Known Implementing Classes:
NESTGraphIDManagerImpl
public interface NESTGraphIDManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends NESTEdgeObject>
TassignUniqueEdgeId(T edge)Assigns the given edge a new unique edge id.voidassignUniqueIds()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.booleancontainsId(String id)Checks if the graph conatins a given id.StringgetNewUniqueControlflowNodeId()Generates a new unique id for a controlflow node.Map.Entry<String,String>getNewUniqueControlflowNodeIdPair()Generates a pair of two new unique and corresponding ids for a controlflow start and end node.StringgetNewUniqueDataNodeId()Generates a new unique data node id.StringgetNewUniqueEdgeId()Generates a new unique edge id.StringgetNewUniqueNodeId()Generates a new unique node id.StringgetNewUniqueSubworkflowNodeId()Generates a new unique subworkflow node id.StringgetNewUniqueTaskNodeId()Generates a new unique task node id.StringgetNewUniqueWorkflowNodeId()Generates a new unique workflow node id.booleanhasUniqueIds()Checks if the graph exclusively consists of graph items with valid and unique ids.booleanhasValidId(NESTGraphItemObject item)Checks if the given graph item has a valid id with respect to the prefix.booleanisUniqueId(String id)Checks if the given id is unique.
-
-
-
Method Detail
-
assignUniqueIds
void assignUniqueIds()
Ensures that the graph exclusively consists of graph items with unique ids.
-
assignUniqueNodeId
<T extends NESTNodeObject> T assignUniqueNodeId(T node)
Assigns the given node a new unique node id.- Parameters:
node-- Returns:
- node with unique id
-
assignUniqueEdgeId
<T extends NESTEdgeObject> T assignUniqueEdgeId(T edge)
Assigns the given edge a new unique edge id.- Parameters:
edge-- Returns:
- edge with unique id
-
hasUniqueIds
boolean hasUniqueIds()
Checks if the graph exclusively consists of graph items with valid and unique ids.- Returns:
trueif all ids in the graph are valid and unique,falseotherwise
-
hasValidId
boolean hasValidId(NESTGraphItemObject item)
Checks if the given graph item has a valid id with respect to the prefix.- Parameters:
item-- Returns:
trueif the id is valid,falseotherwise
-
getNewUniqueNodeId
String getNewUniqueNodeId()
Generates a new unique node id.- Returns:
- unique node id
-
getNewUniqueTaskNodeId
String getNewUniqueTaskNodeId()
Generates a new unique task node id.- Returns:
- unique task node id
-
getNewUniqueDataNodeId
String getNewUniqueDataNodeId()
Generates a new unique data node id.- Returns:
- unique data node id
-
getNewUniqueSubworkflowNodeId
String getNewUniqueSubworkflowNodeId()
Generates a new unique subworkflow node id.- Returns:
- unique subworkflow node id
-
getNewUniqueWorkflowNodeId
String getNewUniqueWorkflowNodeId()
Generates a new unique workflow node id.- Returns:
- unique workflow node id
-
getNewUniqueEdgeId
String getNewUniqueEdgeId()
Generates a new unique edge id.- Returns:
- unique edge id
-
getNewUniqueControlflowNodeIdPair
Map.Entry<String,String> getNewUniqueControlflowNodeIdPair()
Generates a pair of two new unique and corresponding ids for a controlflow start and end node.- Returns:
- key-value-pair with a new unique start node id (key) and a new unique end node id (value)
-
getNewUniqueControlflowNodeId
String getNewUniqueControlflowNodeId()
Generates a new unique id for a controlflow node.- Returns:
- unique controlflow node id
-
containsId
boolean containsId(String id)
Checks if the graph conatins a given id.- Parameters:
id-- Returns:
trueif the id is contained,falseotherwise
-
isUniqueId
boolean isUniqueId(String id)
Checks if the given id is unique.- Parameters:
id-- Returns:
trueif the id is unique,falseotherwise
-
-