HostComponent[] hosts = getRunningExperiment().getHosts(); String name = hosts[0].getShortName(); createTool(SOCIETY_MONITOR, CSMARTUL.class, name, null, null, null);
Experiment runningExperiment = null; String name = ""; if (runningExperiments.size() > 0) { runningExperiment = (Experiment)runningExperiments.get(0); name = runningExperiment.getExperimentName(); } Class[] paramClasses = { CSMART.class, Experiment.class }; Object[] params = new Object[2]; params[0] = this; params[1] = runningExperiment; createTool(SOCIETY_MONITOR, CSMARTUL.class, name, null, paramClasses, params);
  public void runMonitor() {    HostComponent[] hosts = getRunningExperiment().getHosts();    String name = hosts[0].getShortName();    createTool(SOCIETY_MONITOR, CSMARTUL.class, name, null, null, null);  }