- GroupBlock* createChildBlock(GroupBlock* parent);
- FunctionalBlock* addFunctionalBlock(GroupBlock *group, ReferenceBlock *ref);
-
+ // methods for source blocks
+ FunctionalBlock* createSourceBlock(ReferenceBlock *ref);
+ FunctionalBlock* duplicateSourceBlock(FunctionalBlock *block);
+ FunctionalBlock* getSourceBlockByName(QString name);
+ bool removeSourceBlock(FunctionalBlock* block);
+
+ // others
+ QList<AbstractInterface *> getOutsideInterfaces();
+ /*!
+ * \brief initPatterns
+ * initPatterns() crosses the graph and for each functional block, it computes
+ * the consumptionPattern, the productionPattern, the production counter and delta
+ * using the parameters fo the block.
+ */
+ bool createPatterns();
+ void resetPatternComputed();
+ bool computeOutputPatterns(int nbExec);
+
+