public void hashCode(HashCodeBuilder hashCodeBuilder) { hashCodeBuilder.append(this.getEffect()); hashCodeBuilder.append(this.getRole()); hashCodeBuilder.append(this.getCause()); hashCodeBuilder.append(this.getAccount()); hashCodeBuilder.append(this.getStartTime()); hashCodeBuilder.append(this.getEndTime()); hashCodeBuilder.append(this.getAnnotation()); hashCodeBuilder.append(this.getId()); }
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; }
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; }
ProcessRef pid=wasControlledBy.getEffect(); Process p=(Process)(pid.getRef()); AgentRef aid=wasControlledBy.getCause(); Agent a=(Agent)(aid.getRef()); Role r=wasControlledBy.getRole(); Collection<AccountRef> accs=wasControlledBy.getAccount(); if (aid.equals(u.getCause()) && 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 void setEffect(org.openprovenance.model.ProcessRef value) { super.setEffect(value); QName q=((RdfProcess)(value.getRef())).getQName(); org.openprovenance.rdf.Process p=(org.openprovenance.rdf.Process)manager.find(q); org.openprovenance.rdf.WasControlledBy c=findMyFacade(); c.setEffect(p); }
public void setCause(org.openprovenance.model.AgentRef value) { super.setCause(value); QName q=((RdfAgent)(value.getRef())).getQName(); org.openprovenance.rdf.Agent ag=(org.openprovenance.rdf.Agent)manager.find(q); org.openprovenance.rdf.WasControlledBy c=findMyFacade(); c.setCause(ag); }
ProvenanceAgent cause=agentTable.get(causeId); ProvenanceProcess effect=processTable.get(effectId); ProvenanceRole role = pcf.newRole(((WasControlledBy)e).getRole().getValue()); if (accounts.isEmpty()) { ProvenanceAccount account=accountTable.get(NULL_ACCOUNT);
public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof WasControlledBy)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final WasControlledBy that = ((WasControlledBy) 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.getStartTime(), that.getStartTime()); equalsBuilder.append(this.getEndTime(), that.getEndTime()); equalsBuilder.append(this.getAnnotation(), that.getAnnotation()); equalsBuilder.append(this.getId(), that.getId()); }
ProvenanceAgent cause=agentTable.get(causeId); ProvenanceProcess effect=processTable.get(effectId); ProvenanceRole role = pcf.newRole(((WasControlledBy)e).getRole().getValue()); if (accounts.isEmpty()) { ProvenanceAccount account=accountTable.get(NULL_ACCOUNT); Role thisRole=((WasControlledBy)e).getRole(); if (!(thisRole.getAnnotation().isEmpty())) { RdfProvenanceRole rdfRole=(RdfProvenanceRole) role;
public WasControlledBy newWasControlledBy(WasControlledBy d) { WasControlledBy wcb=newWasControlledBy(d.getId(), newProcessRef(processRegister2.get(((Process)d.getEffect().getRef()).getId())), newRole(d.getRole()), newAgentRef(agentRegister2.get(((Agent)d.getCause().getRef()).getId())), newAccounts(d.getAccount())); wcb.getAnnotation().addAll(d.getAnnotation()); if (d.getStartTime()!=null) wcb.setStartTime(newOTime(d.getStartTime())); if (d.getEndTime()!=null) wcb.setEndTime(newOTime(d.getEndTime())); return wcb; }
wcb.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); theStartTime = this.getStartTime(); toStringBuilder.append("startTime", theStartTime); theEndTime = this.getEndTime(); toStringBuilder.append("endTime", theEndTime); theAnnotation = this.getAnnotation(); toStringBuilder.append("annotation", theAnnotation); theId = this.getId(); toStringBuilder.append("id", theId);