@Test public void testRun() { Network network = EurostagTutorialExample1Factory.create(); assertTrue(network.getGenerator("GEN").getTerminal().isConnected()); ModificationTask task = new GeneratorTripping("GEN"); Action action = new Action("action", Collections.singletonList(task)); action.run(network, null); assertFalse(network.getGenerator("GEN").getTerminal().isConnected()); }
public void run(Network network, ComputationManager computationManager) { for (ModificationTask task : tasks) { task.modify(network, computationManager); } }
Action { public void run(Network network, ComputationManager computationManager) { for (ModificationTask task : tasks) { task.modify(network, computationManager); } } }
Action { public void run(Network network, ComputationManager computationManager) { for (ModificationTask task : tasks) { task.modify(network, computationManager); } } Action(String id);  Action(String id, List<ModificationTask> tasks); }
Action { public void run(Network network, ComputationManager computationManager) { for (ModificationTask task : tasks) { task.modify(network, computationManager); } } Action(String id);  Action(String id, List<ModificationTask> tasks); String getId(); String getDescription(); void setDescription(String description); List<ModificationTask> getTasks(); void run(Network network, ComputationManager computationManager); }
Action { public void run(Network network, ComputationManager computationManager) { for (ModificationTask task : tasks) { task.modify(network, computationManager); } } Action(String id);  Action(String id, List<ModificationTask> tasks); String getId(); String getDescription(); void setDescription(String description); List<ModificationTask> getTasks(); void run(Network network, ComputationManager computationManager);  }