Skip to content

Commit

Permalink
[HL Batch] Remove doubled function
Browse files Browse the repository at this point in the history
Probably caused by a the #3171 PR merge
  • Loading branch information
RoiArthurB committed Sep 10, 2021
1 parent ead98a2 commit acee765
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions msi.gama.headless/src/msi/gama/headless/runtime/Application.java
Expand Up @@ -433,25 +433,6 @@ public void runSimulation(final List<String> args) throws FileNotFoundException,

System.exit(0);
}

public void runBatchSimulation(final List<String> args) throws FileNotFoundException, InterruptedException {
final String pathToModel = args.get(args.size() - 1);

if (!GamlFileExtension.isGaml(pathToModel)) { System.exit(-1); }

final Injector injector = HeadlessSimulationLoader.getInjector();
final GamlModelBuilder builder = new GamlModelBuilder(injector);

final List<GamlCompilationError> errors = new ArrayList<>();
final IModel mdl = builder.compile(URI.createFileURI(pathToModel), errors);

final IExperimentPlan expPlan = mdl.getExperiment(args.get(args.size() - 2));

expPlan.setHeadless(true);
expPlan.open();

System.exit(0);
}

public void buildAndRunSimulation(final Collection<ExperimentJob> sims) {
final Iterator<ExperimentJob> it = sims.iterator();
Expand Down Expand Up @@ -501,8 +482,8 @@ public void runBatchSimulation(String experimentName, String pathToModel) {
final IModel mdl = builder.compile(URI.createFileURI(pathToModel), errors);

final IExperimentPlan expPlan = mdl.getExperiment(experimentName);

expPlan.setHeadless(true);

expPlan.open();

System.exit(0);
Expand Down

0 comments on commit acee765

Please sign in to comment.