public boolean isProducingForPassiveNode(ModuleNode sourceNode) { if (sourceNode instanceof PassiveNode){ PassiveNode passiveDestNode = (PassiveNode)sourceNode; List currentNodesConnected = getSourceNodes();
public boolean isProducingForPassiveNode(ModuleNode destNode) { if (destNode instanceof PassiveNode){ PassiveNode passiveDestNode = (PassiveNode)destNode; List currentNodesConnected = getDestNodes();
    public boolean isProducingForPassiveNode(ModuleNode sourceNode) {        if (sourceNode instanceof PassiveNode){            PassiveNode passiveDestNode = (PassiveNode)sourceNode;            List currentNodesConnected = getSourceNodes();            for (Iterator iter = currentNodesConnected.iterator(); iter.hasNext();){                ModuleNode currentNode = (ModuleNode) iter.next();                if (currentNode.equals(sourceNode))                    return true;            }        }        return false;    }