/** * {@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 description to be used for the * invocation link. * * @param il The invocation link * @return The description */ protected String getDescription(InvocationLink il) { return (il.getTarget().getService().getServiceType() +" -> "+il.getTarget().getOperation().getName()); }
/** * 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); }
|| node.getOperations().contains(il.getTarget())) { ilIter.remove();
if (!il.getTarget().getProperties().containsKey(ServiceGraphLayout.WIDTH)) { if (LOG.isLoggable(Level.FINER)) { LOG.fine("Target node on invocation link with definition '"+il.getTarget().getService()+"' does not have layout information"); +(Integer)il.getSource().getProperties().get(ServiceGraphLayout.HEIGHT)/2) * ratio); int x2=(int)(((Integer)il.getTarget().getProperties().get(ServiceGraphLayout.X_POSITION)) * ratio); int y2=(int)(((Integer)il.getTarget().getProperties().get(ServiceGraphLayout.Y_POSITION) +(Integer)il.getTarget().getProperties().get(ServiceGraphLayout.HEIGHT)/2) * ratio);