X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/blast.git/blobdiff_plain/43fd94117de66d533ef9e58b2de85daa244da309..e0eaffd44fc9733bc230a803c80d8d5efd0faca6:/GroupInterface.h diff --git a/GroupInterface.h b/GroupInterface.h index d487ebc..6bedd67 100644 --- a/GroupInterface.h +++ b/GroupInterface.h @@ -10,6 +10,7 @@ #include "Exception.h" class Exception; + using namespace std; using namespace Qt; @@ -34,19 +35,22 @@ using namespace Qt; class GroupInterface : public ConnectedInterface { public : - GroupInterface(AbstractBlock* _owner, const QString& _name, int _direction) throw (Exception); + GroupInterface(AbstractBlock* _owner, const QString& _name, int _direction, int _purpose) throw (Exception); // getters - + int getWidth(); + int getClockDomain() throw(Exception); // determine at which freq. is synchronized iface // setters // testers bool isGroupInterface(); - bool canConnectTo(AbstractInterface* iface); - bool canConnectFrom(AbstractInterface* iface); + bool canConnectTo(AbstractInterface* iface, bool testClock); + bool canConnectFrom(AbstractInterface* iface, bool testClock); // others AbstractInterface *clone(); + QList getForwardFunctionalInterfaces(GroupInterface* groupIface); + void connectionsValidation(QStack *interfacetoValidate, QList *validatedInterfaces) throw(Exception); };