if ((direction == Input) && (iface->getDirection() == Input) && (purpose == iface->getPurpose())) return true;
if ((direction == InOut) && (iface->getDirection() == InOut) && (purpose == iface->getPurpose())) return true;
}
if ((direction == Input) && (iface->getDirection() == Input) && (purpose == iface->getPurpose())) return true;
if ((direction == InOut) && (iface->getDirection() == InOut) && (purpose == iface->getPurpose())) return true;
}