+QList<AbstractInterface *> AbstractBlock::getControlInputs() {\r
+ QList<AbstractInterface *> list;\r
+ foreach(AbstractInterface* iface, inputs) {\r
+ if (iface->getPurpose() == AbstractInterface::Control) {\r
+ list.append(iface);\r
+ }\r
+ }\r
+ return list;\r
+}\r
+\r
+QList<AbstractInterface *> AbstractBlock::getControlOutputs() {\r
+ QList<AbstractInterface *> list;\r
+ foreach(AbstractInterface* iface, outputs) {\r
+ if (iface->getPurpose() == AbstractInterface::Control) {\r
+ list.append(iface);\r
+ }\r
+ }\r
+ return list;\r
+}\r
+\r