]> 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 574803d883de02b23cb511aeb1c8fdc82ed2fb39..5e47cd922ab1e3655a90ddc29516305424dacacc 100644 (file)
@@ -14,27 +14,29 @@ using namespace Qt;
 \r
 \r
 class SpecialBlock : public FunctionalBlock {\r
-public:\r
-\r
-  enum SpecialType { ClockConvert = 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
 \r