public void hashCode(HashCodeBuilder hashCodeBuilder) { hashCodeBuilder.append(this.getAnnotation()); hashCodeBuilder.append(this.getId()); }
public void toString(ToStringBuilder toStringBuilder) { { List<JAXBElement<? extends EmbeddedAnnotation>> theAnnotation; theAnnotation = this.getAnnotation(); toStringBuilder.append("annotation", theAnnotation); } { String theId; theId = this.getId(); toStringBuilder.append("id", theId); } }
public Account addAccount(Account account) { return addAccount(account.getId(),account); }
public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof Account)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final Account that = ((Account) object); equalsBuilder.append(this.getAnnotation(), that.getAnnotation()); equalsBuilder.append(this.getId(), that.getId()); }
public List<AccountRef> newAccounts(List<AccountRef> accounts) { List<AccountRef> res=new LinkedList(); for (AccountRef acc: accounts) { res.add(newAccountRef(accountRegister2.get(((Account)acc.getRef()).getId()))); } return res; }
public String processColor(Process p) { // Note, I should compute effective account membership List<String> colors=new LinkedList(); for (AccountRef acc: p.getAccount()) { String accountLabel=((Account)acc.getRef()).getId(); String colour=convertAccount(accountLabel); colors.add(colour); } return selectColor(colors); }
public String artifactColor(Artifact p) { // Note, I should compute effective account membership List<String> colors=new LinkedList(); for (AccountRef acc: p.getAccount()) { String accountLabel=((Account)acc.getRef()).getId(); String colour=convertAccount(accountLabel); colors.add(colour); } return selectColor(colors); } public String agentColor(Agent p) {
public String agentColor(Agent p) { // Note, I should compute effective account membership List<String> colors=new LinkedList(); for (AccountRef acc: p.getAccount()) { String accountLabel=((Account)acc.getRef()).getId(); String colour=convertAccount(accountLabel); colors.add(colour); } return selectColor(colors); }
public void updateFromRdfGraph(OPMGraph graph) { IndexedOPMGraph igraph=new IndexedOPMGraph(oFactory,graph); List<Account> accs=graph.getAccounts().getAccount(); for (Account acc: accs) { if (acc.getId().equals("_null")) { accs.remove(acc); break; } } Collection<Account> green=Collections.singleton(igraph.getAccount("green")); Collection<Account> orange=Collections.singleton(igraph.getAccount("orange")); List<Account> green_orange=new LinkedList(); green_orange.addAll(green); green_orange.addAll(orange); Overlaps ov1=oFactory.newOverlaps(green_orange); graph.getAccounts().getOverlaps().add(ov1); }
public Account newAccount(Account acc) { Account res=newAccount(acc.getId()); addNewAnnotations(res,acc.getAnnotation()); return res; }
accNames.add(((Account) accId.getRef()).getId());
for (Account acc:accounts.getAccount()) { generateWFFromAccount(acc.getId());
accNames.add(((Account) accId.getRef()).getId());
public void emitDependency(Edge e, PrintStream out) { HashMap<String,String> properties=new HashMap(); List<AccountRef> accounts=e.getAccount(); if (accounts.isEmpty()) { accounts=new LinkedList(); accounts.add(of.newAccountRef(of.newAccount(defaultAccountLabel))); } for (AccountRef acc: accounts) { String accountLabel=((Account)acc.getRef()).getId(); addEdgeAttributes(accountLabel,e,properties); emitEdge( ((Node)e.getEffect().getRef()).getId(), ((Node)e.getCause().getRef()).getId(), properties, out, true); } }
accNames.add(((Account) accId.getRef()).getId());
accs.add(register(acc.getId(),newAccount(acc)));
ProvenanceAccount account=accountTable.get(((Account)aid.getRef()).getId()); RdfProvenanceAccount a2=(RdfProvenanceAccount) account; Resource accountSubject=a2.getSubject();
Resource res=Resource.resource(urify(acc.getId())); ProvenanceAccount rdfAccount=pcf.newAccount(acc.getId(),res); pcf.assertAccount(rdfAccount); accountTable.put(acc.getId(),rdfAccount); } else { for (AccountId aid: accounts) { ProvenanceAccount account=accountTable.get(((Account)aid.getId()).getId()); pcf.assertUsed(effect, cause, role, account); } else { for (AccountId aid: accounts) { ProvenanceAccount account=accountTable.get(((Account)aid.getId()).getId()); pcf.assertGeneratedBy(effect, cause, role, account); } else { for (AccountId aid: accounts) { ProvenanceAccount account=accountTable.get(((Account)aid.getId()).getId()); pcf.assertTriggeredBy(effect, cause, account); } else { for (AccountId aid: accounts) { ProvenanceAccount account=accountTable.get(((Account)aid.getId()).getId()); pcf.assertDerivedFrom(effect, cause, account); } else { for (AccountId aid: accounts) { ProvenanceAccount account=accountTable.get(((Account)aid.getId()).getId()); pcf.assertControlledBy(effect, cause, role, account);
Resource res=Resource.resource(urify(acc.getId())); ProvenanceAccount rdfAccount=pcf.newAccount(acc.getId(),res); pcf.assertAccount(rdfAccount); accountTable.put(acc.getId(),rdfAccount); idTable.put(acc.getId(),subject); } else { for (AccountRef aid: accounts) { ProvenanceAccount account=accountTable.get(((Account)aid.getRef()).getId()); pcf.assertUsed(effect, cause, role, account); } else { for (AccountRef aid: accounts) { ProvenanceAccount account=accountTable.get(((Account)aid.getRef()).getId()); pcf.assertGeneratedBy(effect, cause, role, account); } else { for (AccountRef aid: accounts) { ProvenanceAccount account=accountTable.get(((Account)aid.getRef()).getId()); pcf.assertTriggeredBy(effect, cause, account); } else { for (AccountRef aid: accounts) { ProvenanceAccount account=accountTable.get(((Account)aid.getRef()).getId()); pcf.assertDerivedFrom(effect, cause, account); } else { for (AccountRef aid: accounts) {