public void toString(ToStringBuilder toStringBuilder) { { Object theRef; theRef = this.getRef(); toStringBuilder.append("ref", theRef); } }
/** * Create an instance of {@link AccountRef } * */ public AccountRef createAccountRef() { return new AccountRef(); }
public boolean equals(Object object) { if (!(object instanceof AccountRef)) { return false; } if (this == object) { return true; } final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder(); equals(object, equalsBuilder); return equalsBuilder.isEquals(); }
public int hashCode() { final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder(); hashCode(hashCodeBuilder); return hashCodeBuilder.toHashCode(); }
public String toString() { final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this); toString(toStringBuilder); return toStringBuilder.toString(); }
public AccountRef newAccountRef(Account acc) { AccountRef res=of.createAccountRef(); res.setRef(acc); return res; }
public void hashCode(HashCodeBuilder hashCodeBuilder) { hashCodeBuilder.append(this.getRef()); }
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 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 void addAccounts(HasAccounts element, Collection<AccountRef> accounts) { super.addAccounts(element,accounts); if (element instanceof HasAccounts) { //Annotable HasFacade facade=(HasFacade) element; Object o=facade.findMyFacade(); AnnotationOrEdgeOrNode el=(AnnotationOrEdgeOrNode) o; Set set=new HashSet(); for (AccountRef accr: accounts) { set.add(((HasFacade)accr.getRef()).findMyFacade()); } el.getAccounts().addAll(set); //el.setAccounts(set); } }
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 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 Process newProcess(Process a) { LinkedList<Account> ll=new LinkedList(); for (AccountRef acc: a.getAccount()) { ll.add(newAccount((Account)acc.getRef())); } Process res=newProcess(a.getId(),ll); addNewAnnotations(res,a.getAnnotation()); return res; } public Agent newAgent(Agent a) {
public Artifact newArtifact(Artifact a) { LinkedList<Account> ll=new LinkedList(); for (AccountRef acc: a.getAccount()) { ll.add(newAccount((Account)acc.getRef())); } Artifact res=newArtifact(a.getId(),ll); addNewAnnotations(res,a.getAnnotation()); return res; } public Process newProcess(Process a) {
public Agent newAgent(Agent a) { LinkedList<Account> ll=new LinkedList(); for (AccountRef acc: a.getAccount()) { ll.add(newAccount((Account)acc.getRef())); } Agent res=newAgent(a.getId(),ll); addNewAnnotations(res,a.getAnnotation()); return res; }
accNames.add(((Account) accId.getRef()).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());