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 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 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()); }
theRole = this.getRole(); toStringBuilder.append("role", theRole);
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; }
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; }
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);
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;
wcb.getRole().setId(null);