public WasGeneratedBy newWasGeneratedBy(String id, Artifact a, Role role, Process p, Collection<Account> accounts) { ArtifactRef aid=newArtifactRef(a); ProcessRef pid=newProcessRef(p); LinkedList ll=new LinkedList(); for (Account acc: accounts) { ll.add(newAccountRef(acc)); } return newWasGeneratedBy(id,aid,role,pid,ll); }
public WasGeneratedBy newWasGeneratedBy(String id, Artifact a, Role role, Process p, String type, Collection<Account> accounts) { WasGeneratedBy wgb=newWasGeneratedBy(id,a,role,p,accounts); addAnnotation(wgb,of.createType(newType(type))); return wgb; }
public WasGeneratedBy newWasGeneratedBy(WasGeneratedBy g) { WasGeneratedBy wgb=newWasGeneratedBy(g.getId(), g.getEffect(), g.getRole(), g.getCause(), g.getAccount()); wgb.setId(g.getId()); wgb.getAnnotation().addAll(g.getAnnotation()); return wgb; }
Account account=getAccount(pAccount); WasGeneratedBy g2=pFactory.newWasGeneratedBy(artifact,role,process,Collections.singleton(account)); graph.getCausalDependencies().getUsedOrWasGeneratedByOrWasTriggeredBy().add(g2);
Account account=getAccount(pAccount); WasGeneratedBy g2=pFactory.newWasGeneratedBy(artifact,role,process,Collections.singleton(account)); graph.getCausalDependencies().getUsedOrWasGeneratedByOrWasTriggeredBy().add(g2);
addWasGeneratedBy(oFactory.newWasGeneratedBy((WasGeneratedBy) edge));