X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/e40a5399ec7887c2606f18575c809b0d05b09278..8fb3c55ee009a11db5e1c08a4cfb286979412745:/SpecialBlock.h diff --git a/SpecialBlock.h b/SpecialBlock.h index 06c6459..aff0d6b 100644 --- a/SpecialBlock.h +++ b/SpecialBlock.h @@ -14,31 +14,32 @@ using namespace Qt; class SpecialBlock : public FunctionalBlock { -public: - - enum SpecialType { ClockConvert = 0, ClkRstGen = 1 }; +public: - SpecialBlock(SpecialType _type, GroupBlock* _parent, ReferenceBlock* _reference, bool createIfaces = true) throw(Exception); + SpecialBlock(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); - void checkInputPatternCompatibilityClkRstGen() throw(Exception); - void computeOutputPatternClkRstGen(int nbExec = -1) throw(Exception); + };