diff --git a/AlgebraicDataflowArchitectureModel/src/models/dataFlowModel/DataFlowGraph.java b/AlgebraicDataflowArchitectureModel/src/models/dataFlowModel/DataFlowGraph.java index bf39e5e..7f88b82 100644 --- a/AlgebraicDataflowArchitectureModel/src/models/dataFlowModel/DataFlowGraph.java +++ b/AlgebraicDataflowArchitectureModel/src/models/dataFlowModel/DataFlowGraph.java @@ -166,12 +166,26 @@ return rootChannelNodes; } + /** + * Adds an edge from a resource node to a channel node. + * + * @param srcNode A resource node to be added as the source node of the edge. + * @param dstNode A channel node to be added as the destination node of the edge. + * @return The newly created edge. + */ public DataFlowEdge addEdge(ResourceNode srcNode, ChannelNode dstNode) { DataFlowEdge edge = new DataFlowEdge(srcNode, dstNode); addEdge(edge); return edge; } + /** + * Adds an edge from a channel node to a resource node. + * + * @param srcNode A channel node to be added as the source node of the edge. + * @param dstNode A resource node to be added as the destination node of the edge. + * @return The newly created edge. + */ public DataFlowEdge addEdge(ChannelNode srcNode, ResourceNode dstNode) { DataFlowEdge edge = new DataFlowEdge(srcNode, dstNode); addEdge(edge);