QList<BlockParameter *> getWishboneParameters();\r
inline AbstractBlock* getParent() { return parent; }\r
inline bool getPatternComputed() { return patternComputed; }\r
+ inline int getTraversalLevel() { return traversalLevel; }\r
\r
// setters\r
void setName(const QString& str);\r
virtual void setParent(AbstractBlock* _parent);\r
inline void setPatternComputed(bool state) { patternComputed = state; }\r
+ inline void resetTraversalLevel() { traversalLevel = -1; }\r
+ inline void setTraversalLevel(int level) { traversalLevel = level; }\r
\r
// testers\r
virtual bool isReferenceBlock();\r
bool isWBConfigurable();\r
\r
// others\r
+\r
virtual void parametersValidation(QList<AbstractBlock*>* checkedBlocks, QList<AbstractBlock*>* blocksToConfigure) = 0; // ugly but usefull \r
\r
void addParameter(BlockParameter *param);\r
BlockParameter* getParameterFromName(QString name);\r
\r
// patterns\r
- virtual bool computeOutputPattern(int nbExec = -1) = 0;\r
+ virtual void checkInputPatternCompatibility() throw(Exception) = 0;\r
+ virtual void computeOutputPattern(int nbExec = -1) throw(Exception) = 0;\r
+ virtual void computeAdmittanceDelays() throw(Exception) = 0;\r
\r
protected:\r
\r
\r
// patterns \r
bool patternComputed;\r
+ int traversalLevel; // the level (0, 1, ...) during the traversal of the graph\r
\r
// NB: only GroupBlock and FunctionalBlock have a real parent, except sources that have no parents\r
AbstractBlock* parent;\r
+\r
+\r
};\r
\r
#endif // __ABSTRACTBLOCK_H__\r