#include "FunctionalInterface.h"
#include "GroupBlock.h"
-GroupInterface::GroupInterface(AbstractBlock* _owner, const QString& _name, int _direction) throw(Exception) : ConnectedInterface(_owner,_name,"expression","",_direction,AbstractInterface::Data) {
+GroupInterface::GroupInterface(AbstractBlock* _owner, const QString& _name, int _direction, int _purpose) throw(Exception) : ConnectedInterface(_owner,_name,"expression","",_direction,_purpose) {
if (! _owner->isGroupBlock()) throw(Exception(BLOCK_INVALID_TYPE));
connectedFrom = NULL;
}
AbstractInterface *GroupInterface::clone() {
- GroupInterface *inter = new GroupInterface(owner,name,direction);
- inter->setWidth(width);
- inter->setDirection(direction);
- inter->setPurpose(purpose);
+ GroupInterface *inter = new GroupInterface(owner,name,direction, purpose);
+ inter->setWidth(width);
inter->connectFrom(NULL);
return inter;