]> AND Private Git Repository - blast.git/blobdiff - SpecialBlock.h
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
clkconvert OP compute done
[blast.git] / SpecialBlock.h
index 06c645966ac51697d8960e9d21ab32a11a9a13a3..5e47cd922ab1e3655a90ddc29516305424dacacc 100644 (file)
@@ -14,31 +14,32 @@ using namespace Qt;
 \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