Exemple #1
0
  // @Test
  public void test() throws SimulationException {

    for (DefaultServerSimulation sim : DefaultServerSimulation.findAllDefaultServerSimulations()) {
      System.out.println(sim.getId() + ": " + sim.getOutputs().size());
      for (Variable v : sim.getOutputs()) {
        System.out.println("\t" + v.getExternalName() + "\t" + v.getLabels() + "\t" + v.getName());
      }
    }
  }
Exemple #2
0
  @Test
  public void testEmf() throws Exception {
    DefaultServerSimulation sim = DefaultServerSimulation.findDefaultServerSimulation(42L);

    List<Tuple> inputs = new ArrayList<Tuple>();
    Tuple region = new ServerTuple(DefaultServerVariable.findDefaultVariable(814L));
    Tuple scenario = new ServerTuple(DefaultServerVariable.findDefaultVariable(366L));
    scenario.setValues(new String[] {"EMF27G7"});
    region.setValues(new String[] {"US"});
    inputs.add(region);
    inputs.add(scenario);

    sim.run(inputs);
  }