]> AND Private Git Repository - blast.git/blobdiff - GroupInterface.h
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
finished testbench generation
[blast.git] / GroupInterface.h
index 2a22dc76482a02fed17cca69002749a2c0f21a17..6bedd67151d34e2090b3df488a63e6bb480d84ed 100644 (file)
@@ -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, int _level = AbstractInterface::Basic) 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<ConnectedInterface *> getForwardFunctionalInterfaces(GroupInterface* groupIface);
+
   void connectionsValidation(QStack<AbstractInterface *> *interfacetoValidate, QList<AbstractInterface *> *validatedInterfaces) throw(Exception);
 
 };