+
+void GroupBlock::initInputPattern() {
+ foreach(AbstractInterface* iface, getControlInputs()) {
+ iface->setOutputPattern(iface->getConnectedFrom()->getOutputPattern());
+ }
+}
+
+void GroupBlock::computeOutputPattern(int nbExec) {
+
+ // get the input pattern on each inputs
+ initInputPattern();
+ // find blocks that are connected to that inputs
+
+ foreach(AbstractInterface* iface, getControlOutputs()) {
+ iface->setOutputPattern(iface->getConnectedFrom()->getOutputPattern());
+ }
+}