/** Return all WasControlledBy edges with artifact a as a cause. */ public Collection<WasControlledBy> getWasControlledBy(Agent a) { return agentWasControlledByMap.get(a.getId()); }
public Agent addAgent(Agent agent) { return addAgent(agent.getId(),agent); } public Agent addAgent(String name, Agent agent) {
public void hashCode(HashCodeBuilder hashCodeBuilder) { hashCodeBuilder.append(this.getAccount()); hashCodeBuilder.append(this.getAnnotation()); hashCodeBuilder.append(this.getId()); }
public void toString(ToStringBuilder toStringBuilder) { { List<AccountRef> theAccount; theAccount = this.getAccount(); toStringBuilder.append("account", theAccount); } { List<JAXBElement<? extends EmbeddedAnnotation>> theAnnotation; theAnnotation = this.getAnnotation(); toStringBuilder.append("annotation", theAnnotation); } { String theId; theId = this.getId(); toStringBuilder.append("id", theId); } }
public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof Agent)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final Agent that = ((Agent) object); equalsBuilder.append(this.getAccount(), that.getAccount()); equalsBuilder.append(this.getAnnotation(), that.getAnnotation()); equalsBuilder.append(this.getId(), that.getId()); }
public String agentLabel(Agent p) { if (displayAgentValue) { return convertAgentName(""+of.getLabel(p)); } else { return p.getId(); } }
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; }
public void emitAgent(Agent ag, PrintStream out) { HashMap<String,String> properties=new HashMap(); emitNode(ag.getId(), addAgentShape(ag,addAgentLabel(ag, addAgentColor(ag,properties))), out); emitAnnotations(ag,out); }
ccoll=agentWasControlledByMap.get(a.getId()); if (ccoll==null) { ccoll=new LinkedList();
ags.add(register(ag.getId(), newAgent(ag)));
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; }