Class ScriptNetworkModification

java.lang.Object
com.powsybl.iidm.modification.AbstractNetworkModification
com.powsybl.action.ial.dsl.modification.ScriptNetworkModification
All Implemented Interfaces:
NetworkModification

public class ScriptNetworkModification extends AbstractNetworkModification
Author:
Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
  • Constructor Details

    • ScriptNetworkModification

      public ScriptNetworkModification(groovy.lang.Closure<Void> script)
  • Method Details

    • getScript

      public groovy.lang.Closure<Void> getScript()
    • apply

      public void apply(Network network, NamingStrategy namingStrategy, boolean throwException, ComputationManager computationManager, ReportNode reportNode)
      Description copied from interface: NetworkModification
      Applies the modification to the given network. If throwException is set to true, then in case of error, an exception will be thrown. Otherwise, computation will continue but the injection will not be added to the network in case of error.