public Annotation newAnnotation(String id, Ref ref, String property, Object value, Collection<AccountRef> accs) { Annotation res=of.createAnnotation(); res.setId(id); res.setLocalSubject(ref.getRef()); addProperty(res,newProperty(property,value)); addAccounts(res,accs); return res; }
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 EmbeddedAnnotation newEmbeddedAnnotation(String id, String property, Object value, Collection<AccountRef> accs, Object dummyParameterForAvoidingSameErasure) { EmbeddedAnnotation res=of.createEmbeddedAnnotation(); res.setId(id); addProperty(res,newProperty(property,value)); addAccounts(res,accs); return res; } public EmbeddedAnnotation newEmbeddedAnnotation(String id,
public WasTriggeredBy newWasTriggeredBy(String id, Process p1, Process p2, String type, Collection<Account> accounts) { WasTriggeredBy wtb=newWasTriggeredBy(p1,p2,accounts); wtb.setId(id); addAnnotation(wtb,of.createType(newType(type))); return wtb; }
public Artifact newArtifact(String id, Collection<Account> accounts, String label) { Artifact res=of.createArtifact(); res.setId(id); addAccounts(res,accounts,null); if (label!=null) addAnnotation(res,newLabel(label)); return res; }
public Process newProcess(String pr, Collection<Account> accounts, String label) { Process res=of.createProcess(); res.setId(pr); addAccounts(res,accounts,null); if (label!=null) addAnnotation(res,newLabel(label)); return res; }
public Agent newAgent(String ag, Collection<Account> accounts, String label) { Agent res=of.createAgent(); res.setId(ag); addAccounts(res,accounts,null); if (label!=null) addAnnotation(res,newLabel(label)); return res; }
public String processLabel(Process p) { if (displayProcessValue) { return convertProcessName(""+of.getLabel(p)); } else { return p.getId(); } } public String processColor(Process p) {
public String artifactLabel(Artifact p) { if (displayArtifactValue) { return convertArtifactName(""+of.getLabel(p)); } else { return p.getId(); } } public String artifactColor(Artifact p) {
public String agentLabel(Agent p) { if (displayAgentValue) { return convertAgentName(""+of.getLabel(p)); } else { return p.getId(); } }
public UsedStar newUsedStar(ProcessRef pid, ArtifactRef aid, Collection<AccountRef> accounts) { UsedStar res=of.createUsedStar(); res.setEffect(pid); res.setCause(aid); addAccounts(res,accounts); return res; }
public WasDerivedFromStar newWasDerivedFromStar(ArtifactRef aid1, ArtifactRef aid2, Collection<AccountRef> accounts) { WasDerivedFromStar res=of.createWasDerivedFromStar(); res.setCause(aid2); res.setEffect(aid1); addAccounts(res,accounts); return res; }
public WasGeneratedByStar newWasGeneratedByStar(ArtifactRef aid, ProcessRef pid, Collection<AccountRef> accounts) { WasGeneratedByStar res=of.createWasGeneratedByStar(); res.setCause(pid); res.setEffect(aid); addAccounts(res,accounts); return res; } public WasGeneratedBy newWasGeneratedBy(Artifact a,
public WasTriggeredByStar newWasTriggeredByStar(ProcessRef pid1, ProcessRef pid2, Collection<AccountRef> accounts) { WasTriggeredByStar res=of.createWasTriggeredByStar(); res.setEffect(pid1); res.setCause(pid2); addAccounts(res,accounts); return res; }
public RoleRef newRoleRef(Role p) { RoleRef res=of.createRoleRef(); res.setRef(p); return res; }
public ArtifactRef newArtifactRef(Artifact a) { ArtifactRef res=of.createArtifactRef(); res.setRef(a); return res; } public AgentRef newAgentRef(Agent a) {
public Profile newProfile(String profile) { Profile res=of.createProfile(); res.setValue(profile); return res; }
public EmbeddedAnnotation newEmbeddedAnnotation(String id, List<Property> properties, Collection<AccountRef> accs, Object dummyParameterForAvoidingSameErasure) { EmbeddedAnnotation res=of.createEmbeddedAnnotation(); res.setId(id); if (properties!=null) { addProperty(res,properties); } addAccounts(res,accs); return res; }