public void toString(ToStringBuilder toStringBuilder) { { List<Agent> theAgent; theAgent = this.getAgent(); toStringBuilder.append("agent", theAgent); } }
/** * Create an instance of {@link Agents } * */ public Agents createAgents() { return new Agents(); }
public boolean equals(Object object) { if (!(object instanceof Agents)) { 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 void hashCode(HashCodeBuilder hashCodeBuilder) { hashCodeBuilder.append(this.getAgent()); }
public Agent addAgent(String name, Agent agent) { Agent existing=agentMap.get(name); if (existing!=null) { return existing; } else { agentMap.put(name,agent); Agents agents=getAgents(); if (agents==null) { agents=of.createAgents(); setAgents(agents); } agents.getAgent().add(agent); return agent; } }
public List<Node> getNodes(OPMGraph g) { List<Node> res=new LinkedList(); res.addAll(g.getArtifacts().getArtifact()); res.addAll(g.getProcesses().getProcess()); res.addAll(g.getAgents().getAgent()); return res; }
for (Agent ag: gr.getAgents().getAgent()) { ags.add(register(ag.getId(), newAgent(ag)));
aags.getAgent().addAll(ags); res.setAgents(aags);
graph.getAgents().getAgent().add(agentTable.get(uri));
for (Agent a: graph.getAgents().getAgent()) { Resource res=Resource.uriRef(urify(a.getId())); ProvenanceAgent rdfAgent;
public void noAnnotation(OPMGraph graph) { graph.setAnnotations(null); destroy(graph.getAnnotation()); if (graph.getProcesses()!=null && graph.getProcesses().getProcess()!=null) { for (Process p: graph.getProcesses().getProcess()) { destroy(p.getAnnotation()); } } if (graph.getArtifacts()!=null && graph.getArtifacts().getArtifact()!=null) { for (Artifact a: graph.getArtifacts().getArtifact()) { destroy(a.getAnnotation()); } } if (graph.getAgents()!=null && graph.getAgents().getAgent()!=null) { for (Agent a: graph.getAgents().getAgent()) { destroy(a.getAnnotation()); } } for (Object e: graph.getDependencies().getUsedOrWasGeneratedByOrWasTriggeredBy()) { destroy(((Edge)e).getAnnotation()); } }
for (Agent a: graph.getAgents().getAgent()) { Resource res=Resource.uriRef(urify(a.getId())); ProvenanceAgent rdfAgent;
graph.getAgents().getAgent().add(agentTable.get(uri));
public void convert(OPMGraph graph, PrintStream out) { List<Edge> edges=u.getEdges(graph); prelude(out); if (graph.getProcesses()!=null) { for (Process p: graph.getProcesses().getProcess()) { emitProcess(p,out); } } if (graph.getArtifacts()!=null) { for (Artifact p: graph.getArtifacts().getArtifact()) { emitArtifact(p,out); } } if (graph.getAgents()!=null) { for (Agent p: graph.getAgents().getAgent()) { emitAgent(p,out); } } for (Edge e: edges) { emitDependency(e,out); } postlude(out); }
public void sortGraph(OPMGraph graph) { graph.setAnnotations(oFactory.getObjectFactory().createAnnotations()); sortById((List)graph.getAccounts().getAccount()); if (graph.getProcesses()!=null && graph.getProcesses().getProcess()!=null) { sortById((List)graph.getProcesses().getProcess()); for (Process p: graph.getProcesses().getProcess()) { sortAnnotations(p.getAnnotation()); sortByRef(p.getAccount()); } } if (graph.getArtifacts()!=null && graph.getArtifacts().getArtifact()!=null) { sortById((List)graph.getArtifacts().getArtifact()); for (Artifact a: graph.getArtifacts().getArtifact()) { sortAnnotations(a.getAnnotation()); sortByRef(a.getAccount()); } } if (graph.getAgents()!=null && graph.getAgents().getAgent()!=null) { sortById((List)graph.getAgents().getAgent()); for (Agent a: graph.getAgents().getAgent()) { sortAnnotations(a.getAnnotation()); sortByRef(a.getAccount()); } } for (Object e: graph.getDependencies().getUsedOrWasGeneratedByOrWasTriggeredBy()) { sortAnnotations(((Edge)e).getAnnotation()); sortByRef(((Edge)e).getAccount()); } sortEdges(graph.getDependencies().getUsedOrWasGeneratedByOrWasTriggeredBy()); }
for (Agent acc: graph.getAgents().getAgent()) { addAgent(acc);