X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/3bcfe4df6fdde086eb1b59f7a0173358170174a1..60c13e8b4c7ea3d595969c1e7c0a28b068a17ca6:/SpecialBlock.h diff --git a/SpecialBlock.h b/SpecialBlock.h index 574803d..aff0d6b 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(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);