public WasControlledBy newWasControlledBy(String id, Process p, Role role, Agent ag, Collection<Account> accounts) { AgentRef agid=newAgentRef(ag); ProcessRef pid=newProcessRef(p); LinkedList ll=new LinkedList(); for (Account acc: accounts) { ll.add(newAccountRef(acc)); } return newWasControlledBy(id,pid,role,agid,ll); }
public WasControlledBy newWasControlledBy(String id, Process p, Role role, Agent ag, String type, Collection<Account> accounts) { WasControlledBy wcb=newWasControlledBy(id,p,role,ag,accounts); addAnnotation(wcb,of.createType(newType(type))); return wcb; }
public WasControlledBy newWasControlledBy(WasControlledBy c) { WasControlledBy wcb=newWasControlledBy(c.getEffect(), c.getRole(), c.getCause(), c.getAccount()); wcb.setId(c.getId()); wcb.getAnnotation().addAll(c.getAnnotation()); return wcb; }
public WasControlledBy newWasControlledBy(String id, ProcessRef pid, Role role, AgentRef agid, Collection<AccountRef> accounts) { WasControlledBy res=of.createWasControlledBy(); res.setId(autoGenerateId(wasControlledByIdPrefix,id)); res.setEffect(pid); res.setRole(role); res.setCause(agid); addAccounts(res,accounts); return res; }
Account account=getAccount(pAccount); WasControlledBy g2=pFactory.newWasControlledBy(process,role,agent,Collections.singleton(account)); graph.getCausalDependencies().getUsedOrWasGeneratedByOrWasTriggeredBy().add(g2);
Account account=getAccount(pAccount); WasControlledBy g2=pFactory.newWasControlledBy(process,role,agent,Collections.singleton(account)); graph.getCausalDependencies().getUsedOrWasGeneratedByOrWasTriggeredBy().add(g2);
addWasControlledBy(oFactory.newWasControlledBy((WasControlledBy) edge));