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
-
-
Constructor Summary
Constructors Constructor Description NESTGraphIDManagerImpl(NESTGraphObject graph)Constructor.
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
NESTGraphIDManagerImpl
public NESTGraphIDManagerImpl(NESTGraphObject graph)
Constructor.- Parameters:
graph-
-
-
Method Detail
-
assignUniqueIds
public void assignUniqueIds()
Description copied from interface:NESTGraphIDManagerEnsures that the graph exclusively consists of graph items with unique ids.- Specified by:
assignUniqueIdsin interfaceNESTGraphIDManager
-
assignUniqueNodeId
public <T extends NESTNodeObject> T assignUniqueNodeId(T node)
Description copied from interface:NESTGraphIDManagerAssigns the given node a new unique node id.- Specified by:
assignUniqueNodeIdin interfaceNESTGraphIDManager- Returns:
- node with unique id
-
assignUniqueEdgeId
public <T extends NESTEdgeObject> T assignUniqueEdgeId(T edge)
Description copied from interface:NESTGraphIDManagerAssigns the given edge a new unique edge id.- Specified by:
assignUniqueEdgeIdin interfaceNESTGraphIDManager- Returns:
- edge with unique id
-
hasUniqueIds
public boolean hasUniqueIds()
Description copied from interface:NESTGraphIDManagerChecks if the graph exclusively consists of graph items with valid and unique ids.- Specified by:
hasUniqueIdsin interfaceNESTGraphIDManager- Returns:
trueif all ids in the graph are valid and unique,falseotherwise
-
hasValidId
public boolean hasValidId(NESTGraphItemObject item)
Description copied from interface:NESTGraphIDManagerChecks if the given graph item has a valid id with respect to the prefix.- Specified by:
hasValidIdin interfaceNESTGraphIDManager- Returns:
trueif the id is valid,falseotherwise
-
getNewUniqueNodeId
public String getNewUniqueNodeId()
Description copied from interface:NESTGraphIDManagerGenerates a new unique node id.- Specified by:
getNewUniqueNodeIdin interfaceNESTGraphIDManager- Returns:
- unique node id
-
getNewUniqueTaskNodeId
public String getNewUniqueTaskNodeId()
Description copied from interface:NESTGraphIDManagerGenerates a new unique task node id.- Specified by:
getNewUniqueTaskNodeIdin interfaceNESTGraphIDManager- Returns:
- unique task node id
-
getNewUniqueDataNodeId
public String getNewUniqueDataNodeId()
Description copied from interface:NESTGraphIDManagerGenerates a new unique data node id.- Specified by:
getNewUniqueDataNodeIdin interfaceNESTGraphIDManager- Returns:
- unique data node id
-
getNewUniqueSubworkflowNodeId
public String getNewUniqueSubworkflowNodeId()
Description copied from interface:NESTGraphIDManagerGenerates a new unique subworkflow node id.- Specified by:
getNewUniqueSubworkflowNodeIdin interfaceNESTGraphIDManager- Returns:
- unique subworkflow node id
-
getNewUniqueWorkflowNodeId
public String getNewUniqueWorkflowNodeId()
Description copied from interface:NESTGraphIDManagerGenerates a new unique workflow node id.- Specified by:
getNewUniqueWorkflowNodeIdin interfaceNESTGraphIDManager- Returns:
- unique workflow node id
-
getNewUniqueEdgeId
public String getNewUniqueEdgeId()
Description copied from interface:NESTGraphIDManagerGenerates a new unique edge id.- Specified by:
getNewUniqueEdgeIdin interfaceNESTGraphIDManager- Returns:
- unique edge id
-
getNewUniqueControlflowNodeIdPair
public Map.Entry<String,String> getNewUniqueControlflowNodeIdPair()
Description copied from interface:NESTGraphIDManagerGenerates a pair of two new unique and corresponding ids for a controlflow start and end node.- Specified by:
getNewUniqueControlflowNodeIdPairin interfaceNESTGraphIDManager- Returns:
- key-value-pair with a new unique start node id (key) and a new unique end node id (value)
-
getNewUniqueControlflowNodeId
public String getNewUniqueControlflowNodeId()
Description copied from interface:NESTGraphIDManagerGenerates a new unique id for a controlflow node.- Specified by:
getNewUniqueControlflowNodeIdin interfaceNESTGraphIDManager- Returns:
- unique controlflow node id
-
containsId
public boolean containsId(String id)
Description copied from interface:NESTGraphIDManagerChecks if the graph conatins a given id.- Specified by:
containsIdin interfaceNESTGraphIDManager- Returns:
trueif the id is contained,falseotherwise
-
isUniqueId
public boolean isUniqueId(String id)
Description copied from interface:NESTGraphIDManagerChecks if the given id is unique.- Specified by:
isUniqueIdin interfaceNESTGraphIDManager- Returns:
trueif the id is unique,falseotherwise
-
-