/** * This method returns the usage link associated with the supplied * source and target service nodes. * * @param source The source * @param target The target * @return The usage link, or null if not found */ public UsageLink getUsageLink(ServiceNode source, ServiceNode target) { UsageLink ret=null; for (UsageLink eul : getUsageLinks()) { if (eul.getSource() == source && eul.getTarget() == target) { ret = eul; break; } } return (ret); }
for (UsageLink ul : sg.getUsageLinks()) { if (ul.getTarget() == node) { if (isServiceProvider(sg, ul.getSource(), focus, visited)) {
for (UsageLink ul : sg.getUsageLinks()) { generateUsageLink(ul, ratio, container, insertPoint);
java.util.Iterator<UsageLink> ulIter=sg.getUsageLinks().iterator();
for (UsageLink ul : sg.getUsageLinks()) {
ul.getInvocations().add(id); sg.getUsageLinks().add(ul);