@Test public void testOrder() throws IOException { writeToDslFile("contingency('c1') {", " equipments 'NHV1_NHV2_1'", "}", "contingency('c2') {", " equipments 'NHV1_NHV2_2'", "}"); List<Contingency> contingencies = new GroovyDslContingenciesProvider(dslFile) .getContingencies(network); assertEquals(2, contingencies.size()); assertEquals("c1", contingencies.get(0).getId()); assertEquals("c2", contingencies.get(1).getId()); }
@Override public List<Contingency> getContingencies(Network network) { return new ContingencyDslLoader(script).load(network); }
GroovyDslContingenciesProvider extends AbstractDslContingenciesProvider { @Override public List<Contingency> getContingencies(Network network) { return new ContingencyDslLoader(script).load(network); } }
GroovyDslContingenciesProvider extends AbstractDslContingenciesProvider { @Override public List<Contingency> getContingencies(Network network) { return new ContingencyDslLoader(script).load(network); } GroovyDslContingenciesProvider(final Path path);  GroovyDslContingenciesProvider(final InputStream input); }
GroovyDslContingenciesProvider extends AbstractDslContingenciesProvider { @Override public List<Contingency> getContingencies(Network network) { return new ContingencyDslLoader(script).load(network); } GroovyDslContingenciesProvider(final Path path);  GroovyDslContingenciesProvider(final InputStream input); @Override List<Contingency> getContingencies(Network network); }
GroovyDslContingenciesProvider extends AbstractDslContingenciesProvider { @Override public List<Contingency> getContingencies(Network network) { return new ContingencyDslLoader(script).load(network); } GroovyDslContingenciesProvider(final Path path);  GroovyDslContingenciesProvider(final InputStream input); @Override List<Contingency> getContingencies(Network network);  }