public Used newUsed(String id, Process p, Role role, Artifact a, Collection<Account> accounts) { ProcessRef pid=newProcessRef(p); ArtifactRef aid=newArtifactRef(a); LinkedList ll=new LinkedList(); if (accounts!=null) { for (Account acc: accounts) { ll.add(newAccountRef(acc)); } } return newUsed(id,pid,role,aid,ll); } public UsedStar newUsedStar(Process p,
public Used newUsed(String id, Process p, Role role, Artifact a, String type, Collection<Account> accounts) { Used res=newUsed(id,p,role,a,accounts); addAnnotation(res,of.createType(newType(type))); return res; }
public Used newUsed(Used u) { Used u1=newUsed(u.getId(), u.getEffect(), u.getRole(), u.getCause(), u.getAccount()); u1.getAnnotation().addAll(u.getAnnotation()); return u1; }
Account account=getAccount(pAccount); Used u2=pFactory.newUsed(process,role,artifact,Collections.singleton(account)); graph.getCausalDependencies().getUsedOrWasGeneratedByOrWasTriggeredBy().add(u2);
Account account=getAccount(pAccount); Used u2=pFactory.newUsed(process,role,artifact,Collections.singleton(account)); graph.getCausalDependencies().getUsedOrWasGeneratedByOrWasTriggeredBy().add(u2);
if (edge instanceof Used) { addUsed(oFactory.newUsed((Used) edge));