3 - this is owned by a group and iface by its parent group
2.1 - this is an output, iface is an output of the group
2.2 - both are inout
+
*/
if ((direction == Output) && (iface->getDirection() == Output)) return true;
if ((direction == InOut) && (iface->getDirection() == InOut)) return true;
}
+
return false;
}
3 - this is owned by a group and iface by its parent group
2.1 - this is an input, iface is an input of the group
2.2 - both are inout
+ 4 - this is owned by top group and iface is an output of a source block
*/
if (iface->isReferenceInterface()) return false;
if (getConnectedFrom() != NULL) return false;
if ((direction == Input) && (iface->getDirection() == Input)) return true;
if ((direction == InOut) && (iface->getDirection() == InOut)) return true;
}
+ else if ((getOwner()->isTopGroupBlock()) && (iface->getOwner()->isSourceBlock())) {
+ if ((direction == Input) && (iface->getDirection() == Output)) return true;
+ }
return false;
}