public Role newRole(String value) { return newRole(autoGenerateId(roleIdPrefix),value); }
public Role newRole(Role role) { return newRole(autoGenerateId(roleIdPrefix,role.getId()),role.getValue()); }
public WasDerivedFrom newWasDerivedFrom(String id, ArtifactRef aid1, ArtifactRef aid2, Collection<AccountRef> accounts) { WasDerivedFrom res=of.createWasDerivedFrom(); res.setId(autoGenerateId(wasDerivedFromIdPrefix,id)); res.setCause(aid2); res.setEffect(aid1); addAccounts(res,accounts); return res; }
public WasTriggeredBy newWasTriggeredBy(String id, ProcessRef pid1, ProcessRef pid2, Collection<AccountRef> accounts) { WasTriggeredBy res=of.createWasTriggeredBy(); res.setId(autoGenerateId(wasTriggeredByIdPrefix,id)); res.setEffect(pid1); res.setCause(pid2); addAccounts(res,accounts); return res; }
public Used newUsed(String id, ProcessRef pid, Role role, ArtifactRef aid, Collection<AccountRef> accounts) { Used res=of.createUsed(); res.setId(autoGenerateId(usedIdPrefix,id)); res.setEffect(pid); res.setRole(role); res.setCause(aid); addAccounts(res,accounts); return res; }
public WasGeneratedBy newWasGeneratedBy(String id, ArtifactRef aid, Role role, ProcessRef pid, Collection<AccountRef> accounts) { WasGeneratedBy res=of.createWasGeneratedBy(); res.setId(autoGenerateId(wasGenerateByIdPrefix,id)); res.setCause(pid); res.setRole(role); res.setEffect(aid); addAccounts(res,accounts); return res; }
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; }
res.setId(autoGenerateId(opmGraphIdPrefix,id)); if (accs!=null) { Accounts aaccs=of.createAccounts();