public WasDerivedFrom newContained(String id, Artifact a1, Artifact a2, Collection<Account> accounts) { return oFactory.newWasDerivedFrom(id,a1,a2,CONTAINED,accounts); }
public WasDerivedFrom newWasIdenticalTo(String id, Artifact a1, Artifact a2, Collection<Account> accounts) { return oFactory.newWasDerivedFrom(id,a1,a2,WASIDENTICALTO,accounts); }
public WasDerivedFrom newWasDerivedFrom(String id, Artifact a1, Artifact a2, Collection<Account> accounts) { ArtifactRef aid1=newArtifactRef(a1); ArtifactRef aid2=newArtifactRef(a2); LinkedList ll=new LinkedList(); for (Account acc: accounts) { ll.add(newAccountRef(acc)); } return newWasDerivedFrom(id,aid1,aid2,ll); }
public WasDerivedFrom newWasDerivedFrom(String id, Artifact a1, Artifact a2, String type, Collection<Account> accounts) { WasDerivedFrom wdf=newWasDerivedFrom(id,a1,a2,accounts); addAnnotation(wdf,of.createType(newType(type))); return wdf; }
public WasDerivedFrom newWasDerivedFrom(WasDerivedFrom d) { WasDerivedFrom wdf=newWasDerivedFrom(d.getId(), d.getEffect(), d.getCause(), d.getAccount()); wdf.getAnnotation().addAll(d.getAnnotation()); return wdf; }
Account account=getAccount(pAccount); WasDerivedFrom d2=pFactory.newWasDerivedFrom(artifact2,artifact1,Collections.singleton(account)); graph.getCausalDependencies().getUsedOrWasGeneratedByOrWasTriggeredBy().add(d2);
Account account=getAccount(pAccount); WasDerivedFrom d2=pFactory.newWasDerivedFrom(artifact2,artifact1,Collections.singleton(account)); graph.getCausalDependencies().getUsedOrWasGeneratedByOrWasTriggeredBy().add(d2);
addWasDerivedFrom(oFactory.newWasDerivedFrom((WasDerivedFrom) edge));