SocietyComponent soc = getSocietyComponent(0); if (soc != null && soc.getSocietyName().equals("3ID-135-CMT")) { node = addNode("SMALL-135-TRANS-NODE"); expID = "SMALL-135-TRANS"; } else node = addNode("Node0");
SocietyComponent soc = getSocietyComponent(); node = addNode("Node0"); if (expID == null) { if (soc != null) expID = soc.getShortName() + "-basic-expt-id"; else expID = "Basic-expt-id"; }
  public void createDefaultConfiguration() {    // Check if it already has a node?    // create one Node    NodeComponent node = null;    // BIG HACK IN HERE!!!!!!    SocietyComponent soc = getSocietyComponent(0);    if (soc != null && soc.getSocietyName().equals("3ID-135-CMT")) {      node = addNode("SMALL-135-TRANS-NODE");      expID = "SMALL-135-TRANS";    } else      node = addNode("Node0");        // Put all the agents in this Node    // Skip agents already assigned to Nodes?    AgentComponent[] agents = getAgents();    for (int i = 0; i < agents.length; i++) {      node.addAgent(agents[i]);    }          // Create one host    // get this machine's name and use it    String localhost = "localhost";    try {      localhost = java.net.InetAddress.getLocalHost().getHostName();    } catch (java.net.UnknownHostException e) {}    HostComponent host = addHost(localhost);    // put the one node on that host    host.addNode(node);  }