class GroupBlock;\r
#include "Exception.h"\r
class Exception;\r
+class BlockImplementation;\r
+class ArithmeticEvaluator;\r
+ \r
\r
\r
using namespace std;\r
inline ReferenceBlock* getReference() { return reference; }\r
\r
// setters\r
+ inline void setImplementation(BlockImplementation* impl) { implementation = impl; }\r
\r
// testers\r
bool isFunctionalBlock();\r
QString getReferenceHashMd5();\r
\r
// patterns\r
+ bool createPatterns();\r
+ bool createDelta();\r
+ bool createConsumptionPattern(); // initialize a QList<char> for each interface from patterns defined in implementation\r
+ bool createProductionPattern(); // initialize a QList<char> for each interface from patterns defined in implementation\r
+ bool createProductionCounter(); // initialize a QList<int> from counter defined in implementation\r
void initConsumptionPattern(); // initialize a char** from patterns defined for each interface\r
void initProductionPattern(); // initialize a char** from patterns defined for each interface\r
void clearConsumptionPattern();\r
\r
private: \r
// patterns\r
- void computeOutputPattern(int nbExec = -1);\r
+ bool computeOutputPattern(int nbExec = -1);\r
bool isValidDataGroup(char** pattern, int nbPorts, int clock);\r
/*!\r
* \brief combinePatterns\r
char** productionPattern;\r
int nbProducingPorts;\r
int lengthPP;\r
+ ArithmeticEvaluator* evaluator;\r
\r
ReferenceBlock* reference;\r
+ BlockImplementation* implementation;\r
\r
};\r
\r