X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/3bbc311e444c1ef9ac66dd6861fb0acb13ddb72a..cfe8322b50c9ef08ffbc3e52b0849bca4cd1d0bf:/AbstractInterface.h?ds=sidebyside diff --git a/AbstractInterface.h b/AbstractInterface.h index 39157a6..e26f5c5 100644 --- a/AbstractInterface.h +++ b/AbstractInterface.h @@ -49,6 +49,10 @@ public : inline AbstractInterface* getAssociatedIface() { return associatedIface; } double getDoubleWidth() throw(QException); + + inline QList getConsumptionPattern() { return consumptionPattern; } + inline QList getProductionPattern() { return productionPattern; } + inline QList getOutputPattern() { return outputPattern; } //virtual QList getConnectedTo() = 0; @@ -66,6 +70,10 @@ public : void setPurpose(int _purpose); void setDirection(int _direction); bool setAssociatedIface(AbstractInterface* iface); + + inline void setConsumptionPattern(QList pattern) { consumptionPattern = pattern; } + inline void setProductionPattern(QList pattern) { productionPattern = pattern; } + inline void setOutputPattern(QList pattern) { outputPattern = pattern; } // testers virtual bool isReferenceInterface(); @@ -106,6 +114,12 @@ protected: * (NB: a test is done in the method to prevent the other case). */ AbstractInterface* associatedIface; + + // patterns + QList consumptionPattern; //! only usefull for input interfaces + QList productionPattern; //! only usefull for output interfaces + + QList outputPattern; //! only usefull for output interfaces };