\r
\r
class SpecialBlock : public FunctionalBlock {\r
-public:\r
-\r
- enum SpecialType { ClockConvert = 0, ClkRstGen = 1 };\r
+public: \r
\r
- SpecialBlock(SpecialType _type, GroupBlock* _parent, ReferenceBlock* _reference, bool createIfaces = true) throw(Exception);\r
+ SpecialBlock(Graph* _graph, int _type, GroupBlock* _parent, ReferenceBlock* _reference, bool createIfaces = true) throw(Exception);\r
~SpecialBlock();\r
- // getters\r
+ // getters \r
\r
// setters\r
\r
// testers\r
+ bool isSpecialBlock();\r
\r
- // others\r
+ // others \r
\r
// patterns\r
void checkInputPatternCompatibility() throw(Exception);\r
void computeOutputPattern(int nbExec = -1) throw(Exception);\r
\r
-private:\r
- SpecialType type;\r
- \r
+private: \r
+\r
+ void checkInputPatternCompatibilitySource() throw(Exception);\r
+ void computeOutputPatternSource(int nbExec = -1) throw(Exception);\r
+ void checkInputPatternCompatibilitySink() throw(Exception);\r
+ void computeOutputPatternSink(int nbExec = -1) throw(Exception);\r
void checkInputPatternCompatibilityClockConvert() throw(Exception);\r
void computeOutputPatternClockConvert(int nbExec = -1) throw(Exception);\r
- void checkInputPatternCompatibilityClkRstGen() throw(Exception);\r
- void computeOutputPatternClkRstGen(int nbExec = -1) throw(Exception);\r
+\r
\r
};\r
\r