NodeComponent[] nodes = experiment.getNodes();
NodeComponent[] nodes = experiment.getNodeComponents();
  private void assignUnassignedAgents() {    // get the nodes in the experiment    // note that this reconciles node agents to society agents,    // removing any agents that no longer exist    NodeComponent[] nodes = experiment.getNodes();    if (nodes.length == 0)      return; // no nodes to use    // get all assigned agents    ArrayList assignedAgents = new ArrayList();    HostComponent[] hosts = experiment.getHosts();    for (int i = 0; i < hosts.length; i++) {      NodeComponent[] nodesInHost = hosts[i].getNodes();      for (int j = 0; j < nodesInHost.length; j++) { 	assignedAgents.addAll(Arrays.asList(nodesInHost[j].getAgents()));      }    }    // assign all unassigned agents to nodes        int nextNode = 0;    int nNodes = nodes.length;    AgentComponent[] agents = experiment.getAgents();    for (int i = 0; i < agents.length; i++) {      if (!assignedAgents.contains(agents[i])) {	nodes[nextNode++].addAgent(agents[i]);	if (nextNode == nNodes)	  nextNode = 0;      }    }  }