11 class FunctionalBlock;
12 class AbstractInterface;
25 inline GroupBlock* getTopGroup() { return topGroup; }
26 inline QList<GroupBlock*> getAllGroups() { return groups; }
28 // methods for group blocks
29 GroupBlock* createChildGroupBlock(GroupBlock* parent);
30 bool removeGroupBlock(GroupBlock *group);
31 GroupBlock* getGroupBlockByName(QString name);
33 // methods for functional blocks
34 FunctionalBlock* createFunctionalBlock(GroupBlock *group, ReferenceBlock *ref);
35 FunctionalBlock* duplicateFunctionalBlock(FunctionalBlock *block);
36 bool removeFunctionalBlock(FunctionalBlock* block);
37 FunctionalBlock* getFunctionalBlockByName(QString name, GroupBlock* parent = NULL); //! if parent = NULL, search in the whole graph
39 // methods for source blocks
40 FunctionalBlock* createSourceBlock(ReferenceBlock *ref);
41 FunctionalBlock* duplicateSourceBlock(FunctionalBlock *block);
42 FunctionalBlock* getSourceBlockByName(QString name);
43 bool removeSourceBlock(FunctionalBlock* block);
46 QList<AbstractInterface *> getOutsideInterfaces();
48 * \brief createPatterns
49 * createPatterns() crosses the graph and for each functional block, it computes
50 * the consumptionPattern, the productionPattern, the production counter and delta
51 * using the parameters fo the block.
53 void createPatterns() throw(Exception);
54 void resetPatternComputed();
55 bool computeOutputPatterns(int nbExec);
60 QList<GroupBlock *> groups; //! usefull to avoid recursive methods to find a particular group.
61 QList<FunctionalBlock*> sources; //! source for the top group