/** Construct the graph representing the topology.
* This is sort of bogus because it's totally hard-wired,
* but it will do for now...
*/
protected MutableGraphModel _constructDivaGraph() {
BasicGraphModel model = new BasicGraphModel();
Object root = model.getRoot();
// Objects, with user object set to the actor
Object n1 = model.createNode(_clock);
Object n2 = model.createNode(_join1);
Object n3 = model.createNode(_fork1);
Object n4 = model.createNode(_fBack1);
Object n5 = model.createNode(_rcvr1);
Object n6 = model.createNode(_join2);
Object n7 = model.createNode(_fork2);
Object n8 = model.createNode(_fBack2);
Object n9 = model.createNode(_rcvr2);
model.addNode(this, n1, root);
model.addNode(this, n2, root);
model.addNode(this, n3, root);
model.addNode(this, n4, root);
model.addNode(this, n5, root);
model.addNode(this, n6, root);
model.addNode(this, n7, root);
model.addNode(this, n8, root);
model.addNode(this, n9, root);
_nodeMap.put(_clock, n1);
_nodeMap.put(_join1, n2);
_nodeMap.put(_fork1, n3);
_nodeMap.put(_fBack1, n4);
_nodeMap.put(_rcvr1, n5);
_nodeMap.put(_join2, n6);
_nodeMap.put(_fork2, n7);
_nodeMap.put(_fBack2, n8);
_nodeMap.put(_rcvr2, n9);
// Edges
Object e;
e = model.createEdge(null);
model.setEdgeTail(this, e, n1);
model.setEdgeHead(this, e, n2);
e = model.createEdge(null);
model.setEdgeTail(this, e, n2);
model.setEdgeHead(this, e, n3);
e = model.createEdge(null);
model.setEdgeTail(this, e, n4);
model.setEdgeHead(this, e, n2);
e = model.createEdge(null);
model.setEdgeTail(this, e, n3);
model.setEdgeHead(this, e, n4);
e = model.createEdge(null);
model.setEdgeTail(this, e, n3);
model.setEdgeHead(this, e, n5);
e = model.createEdge(null);
model.setEdgeTail(this, e, n1);
model.setEdgeHead(this, e, n6);
e = model.createEdge(null);
model.setEdgeTail(this, e, n7);
model.setEdgeHead(this, e, n8);
e = model.createEdge(null);
model.setEdgeTail(this, e, n6);
model.setEdgeHead(this, e, n7);
e = model.createEdge(null);
model.setEdgeTail(this, e, n7);
model.setEdgeHead(this, e, n9);
e = model.createEdge(null);
model.setEdgeTail(this, e, n8);
model.setEdgeHead(this, e, n6);
return model;
}