@Override public void refreshView() { datalinkView = new JPanel(new FlowLayout(FlowLayout.LEFT)); datalinkView.setBorder(new EmptyBorder(5,5,5,5)); JLabel label = new JLabel (getTextFromDepth("link", datalink.getResolvedDepth())); datalinkView.add(label); }
public boolean doTypeCheck() throws IterationTypeMismatchException { if (inputs.size() == 0) { // Arguable, but technically a merge with no inputs is valid, it may // make more sense to throw an exception here though as it has no // actual meaning. return true; } // Return false if we have unbound input ports or bound ports where the // resolved depth hasn't been calculated yet for (MergeInputPort ip : inputs) { if (ip.getIncomingLink() == null || ip.getIncomingLink().getResolvedDepth() == -1) { return false; } } // Got all input ports, now scan for input depths int inputDepth = inputs.get(0).getIncomingLink().getResolvedDepth(); for (MergeInputPort ip : inputs) { if (ip.getIncomingLink().getResolvedDepth() != inputDepth) { throw new IterationTypeMismatchException(); } } // Got to here so all the input resolved depths match, push depth+1 to // all outgoing links and return true for (DatalinkImpl dli : output.outgoingLinks) { dli.setResolvedDepth(inputDepth+1); } return true; } }
public boolean doTypeCheck() throws IterationTypeMismatchException { if (inputs.size() == 0) { // Arguable, but technically a merge with no inputs is valid, it may // make more sense to throw an exception here though as it has no // actual meaning. return true; } // Return false if we have unbound input ports or bound ports where the // resolved depth hasn't been calculated yet for (MergeInputPort ip : inputs) { if (ip.getIncomingLink() == null || ip.getIncomingLink().getResolvedDepth() == -1) { return false; } } // Got all input ports, now scan for input depths int inputDepth = inputs.get(0).getIncomingLink().getResolvedDepth(); for (MergeInputPort ip : inputs) { if (ip.getIncomingLink().getResolvedDepth() != inputDepth) { throw new IterationTypeMismatchException(); } } // Got to here so all the input resolved depths match, push depth+1 to // all outgoing links and return true for (DatalinkImpl dli : output.outgoingLinks) { dli.setResolvedDepth(inputDepth+1); } return true; } }
|| ip.getIncomingLink().getResolvedDepth() == -1) { return false; int inputDepth = inputs.get(0).getIncomingLink().getResolvedDepth(); for (MergeInputPort ip : inputs) { if (ip.getIncomingLink().getResolvedDepth() != inputDepth) { throw new IterationTypeMismatchException();
html += "No value"; } else { int depth = incoming.getResolvedDepth(); if (depth == -1) { html += "Invalid"; } else { Datalink outgoing = outgoingSet.iterator().next(); int depth = outgoing.getResolvedDepth(); if (depth == -1) { html += "Invalid/unpredicted";
} else if (dl.getResolvedDepth() == -1) { int resolvedDepth = dl.getResolvedDepth(); dopi.setDepths(resolvedDepth, granularDepth);
} else if (dl.getResolvedDepth() == -1) { int resolvedDepth = dl.getResolvedDepth(); dopi.setDepths(resolvedDepth, granularDepth);
} else if (dl.getResolvedDepth() == -1) { int resolvedDepth = dl.getResolvedDepth(); dopi.setDepths(resolvedDepth, granularDepth);
datalinkSink, edits.createDataflowInputPort(portName, dl.getResolvedDepth(), dl.getResolvedDepth(), nestedDataflow));
return false; } else { if (input.getIncomingLink().getResolvedDepth() == -1) { .getResolvedDepth());
return false; } else { if (input.getIncomingLink().getResolvedDepth() == -1) { .getResolvedDepth());
return false; } else { if (input.getIncomingLink().getResolvedDepth() == -1) { .getResolvedDepth());