if ((direction == Input) && (iface->getDirection() == Input) && (purpose == iface->getPurpose())) return true;
if ((direction == InOut) && (iface->getDirection() == InOut) && (purpose == iface->getPurpose())) return true;
}
- else if ((getOwner()->isTopGroupBlock()) && (iface->getOwner()->isSourceBlock())) {
+ else if ((getOwner()->isTopGroupBlock()) && (iface->getOwner()->isStimuliBlock())) {
if ((direction == Input) && (iface->getDirection() == Output) && (purpose == iface->getPurpose())) return true;
}