public void hashCode(HashCodeBuilder hashCodeBuilder) { hashCodeBuilder.append(this.getEffect()); hashCodeBuilder.append(this.getRole()); hashCodeBuilder.append(this.getCause()); hashCodeBuilder.append(this.getAccount()); hashCodeBuilder.append(this.getTime()); hashCodeBuilder.append(this.getAnnotation()); hashCodeBuilder.append(this.getId()); }
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 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; }
ProcessRef pid=wasGeneratedBy.getCause(); Process p=(Process)(pid.getRef()); ArtifactRef aid=wasGeneratedBy.getEffect(); Artifact a=(Artifact)(aid.getRef()); Role r=wasGeneratedBy.getRole(); Collection<AccountRef> accs=wasGeneratedBy.getAccount(); if (aid.equals(u.getEffect()) && r.equals(u.getRole())) { addNewAccounts(u.getAccount(),accs); result=u; found=true;
public Role getRole(Edge e) { if (e instanceof Used) { return ((Used) e).getRole(); } if (e instanceof WasGeneratedBy) { return ((WasGeneratedBy) e).getRole(); } if (e instanceof WasControlledBy) { return ((WasControlledBy) e).getRole(); } return null; }
public RdfWasGeneratedBy(ElmoManager manager, QName qname) { this.manager=manager; this.qname=qname; this.prefix=qname.getNamespaceURI(); super.setId(qname.getLocalPart()); }
public void setCause(org.openprovenance.model.ProcessRef value) { super.setCause(value); QName q=((RdfProcess)(value.getRef())).getQName(); org.openprovenance.rdf.Process p=(org.openprovenance.rdf.Process)manager.find(q); org.openprovenance.rdf.WasGeneratedBy g=findMyFacade(); g.setCause(p); }
public void setEffect(org.openprovenance.model.ArtifactRef value) { super.setEffect(value); QName q=((RdfArtifact)(value.getRef())).getQName(); org.openprovenance.rdf.Artifact a=(org.openprovenance.rdf.Artifact)manager.find(q); org.openprovenance.rdf.WasGeneratedBy g=findMyFacade(); g.setEffect(a); }
List<AccountRef> accountIDs = dep.getAccount(); ProcessRef procID = dep.getCause(); ArtifactRef artId = dep.getEffect(); Role role = dep.getRole();
ProvenanceProcess cause=processTable.get(causeId); ProvenanceArtifact effect=artifactTable.get(effectId); Role thisRole=((WasGeneratedBy)e).getRole(); ProvenanceRole role; if (thisRole!=null) {
public void setId(String value) { super.setId(value); qname = new QName(prefix, value); manager.designate(qname, org.openprovenance.rdf.WasGeneratedBy.class); }
public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof WasGeneratedBy)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final WasGeneratedBy that = ((WasGeneratedBy) object); equalsBuilder.append(this.getEffect(), that.getEffect()); equalsBuilder.append(this.getRole(), that.getRole()); equalsBuilder.append(this.getCause(), that.getCause()); equalsBuilder.append(this.getAccount(), that.getAccount()); equalsBuilder.append(this.getTime(), that.getTime()); equalsBuilder.append(this.getAnnotation(), that.getAnnotation()); equalsBuilder.append(this.getId(), that.getId()); }
ProvenanceProcess cause=processTable.get(causeId); ProvenanceArtifact effect=artifactTable.get(effectId); Role thisRole=((WasGeneratedBy)e).getRole(); ProvenanceRole role; if (thisRole!=null) {
public WasGeneratedBy newWasGeneratedBy(WasGeneratedBy d) { WasGeneratedBy wgb=newWasGeneratedBy(d.getId(), newArtifactRef(artifactRegister2.get(((Artifact)d.getEffect().getRef()).getId())), newRole(d.getRole()), newProcessRef(processRegister2.get(((Process)d.getCause().getRef()).getId())), newAccounts(d.getAccount())); wgb.getAnnotation().addAll(d.getAnnotation()); if (d.getTime()!=null) wgb.setTime(newOTime(d.getTime())); return wgb; }
wgb.getRole().setId(null);
public void toString(ToStringBuilder toStringBuilder) { theEffect = this.getEffect(); toStringBuilder.append("effect", theEffect); theRole = this.getRole(); toStringBuilder.append("role", theRole); theCause = this.getCause(); toStringBuilder.append("cause", theCause); theAccount = this.getAccount(); toStringBuilder.append("account", theAccount); theTime = this.getTime(); toStringBuilder.append("time", theTime); theAnnotation = this.getAnnotation(); toStringBuilder.append("annotation", theAnnotation); theId = this.getId(); toStringBuilder.append("id", theId);