X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/3bcfe4df6fdde086eb1b59f7a0173358170174a1..4327c2b8817b627249d98d889835726217c81a4e:/SpecialBlock.h?ds=sidebyside diff --git a/SpecialBlock.h b/SpecialBlock.h index 574803d..5e47cd9 100644 --- a/SpecialBlock.h +++ b/SpecialBlock.h @@ -14,27 +14,29 @@ using namespace Qt; class SpecialBlock : public FunctionalBlock { -public: - - enum SpecialType { ClockConvert = 1 }; +public: - SpecialBlock(SpecialType _type, GroupBlock* _parent, ReferenceBlock* _reference, bool createIfaces = true) throw(Exception); + SpecialBlock(Graph* _graph, int _type, GroupBlock* _parent, ReferenceBlock* _reference, bool createIfaces = true) throw(Exception); ~SpecialBlock(); - // getters + // getters // setters // testers + bool isSpecialBlock(); - // others + // others // patterns void checkInputPatternCompatibility() throw(Exception); void computeOutputPattern(int nbExec = -1) throw(Exception); -private: - SpecialType type; - +private: + + void checkInputPatternCompatibilitySource() throw(Exception); + void computeOutputPatternSource(int nbExec = -1) throw(Exception); + void checkInputPatternCompatibilitySink() throw(Exception); + void computeOutputPatternSink(int nbExec = -1) throw(Exception); void checkInputPatternCompatibilityClockConvert() throw(Exception); void computeOutputPatternClockConvert(int nbExec = -1) throw(Exception);