/** * {@inheritDoc} */ public boolean equals(Object obj) { if (obj instanceof InvocationLink) { InvocationLink il=(InvocationLink)obj; return (il.getSource() == _source && il.getTarget() == _target); } return (false); } }
/** * This method returns the invocation link associated with the supplied * source and target operation nodes. * * @param source The source * @param target The target * @return The invocation link, or null if not found */ public InvocationLink getInvocationLink(OperationNode source, OperationNode target) { InvocationLink ret=null; for (InvocationLink eil : getInvocationLinks()) { if (eil.getSource() == source && eil.getTarget() == target) { ret = eil; break; } } return (ret); }
if (!il.getSource().getProperties().containsKey(ServiceGraphLayout.WIDTH)) { if (LOG.isLoggable(Level.FINER)) { LOG.fine("Source node on invocation link with definition '"+il.getSource().getService()+"' does not have layout information"); int x1=(int)(((Integer)il.getSource().getProperties().get(ServiceGraphLayout.X_POSITION) +(Integer)il.getSource().getProperties().get(ServiceGraphLayout.WIDTH)) * ratio); int y1=(int)(((Integer)il.getSource().getProperties().get(ServiceGraphLayout.Y_POSITION) +(Integer)il.getSource().getProperties().get(ServiceGraphLayout.HEIGHT)/2) * ratio);
InvocationLink il=ilIter.next(); if (node.getOperations().contains(il.getSource()) || node.getOperations().contains(il.getTarget())) { ilIter.remove();