// Create the distributed domain representation
distributedDomain = new DistributedSCADomainMemoryImpl(DEFULT_DOMAIN_NAME);
// create the node that runs the
// calculator component
nodeA = new EmbeddedNode("nodeA");
domainA = nodeA.attachDomain(distributedDomain);
contributionURL = Thread.currentThread().getContextClassLoader().getResource("nodeA/");
nodeA.addContribution(DEFULT_DOMAIN_NAME, contributionURL);
// create the node that runs the
// add component
nodeB = new EmbeddedNode("nodeB");
domainB = nodeB.attachDomain(distributedDomain);
contributionURL = Thread.currentThread().getContextClassLoader().getResource("nodeB/");
nodeB.addContribution(DEFULT_DOMAIN_NAME, contributionURL);
// create the node that runs the
// subtract component
nodeC = new EmbeddedNode("nodeC");
domainC = nodeC.attachDomain(distributedDomain);
contributionURL = Thread.currentThread().getContextClassLoader().getResource("nodeC/");
nodeC.addContribution(DEFULT_DOMAIN_NAME, contributionURL);