Package com.powsybl.iidm.modification
Class AbstractNetworkModification
java.lang.Object
com.powsybl.iidm.modification.AbstractNetworkModification
- All Implemented Interfaces:
NetworkModification
- Direct Known Subclasses:
AbstractSetpointModification
,AbstractTapPositionModification
,AbstractTripping
,BatteryModification
,CloseSwitch
,ConnectGenerator
,ConnectVoltageLevelOnLine
,CreateBranchFeederBays
,CreateCouplingDevice
,CreateFeederBay
,CreateLineOnLine
,CreateVoltageLevelTopology
,GeneratorModification
,NetworkModificationList
,OpenSwitch
,PhaseShifterOptimizeTap
,PhaseShifterSetAsFixedTap
,PhaseShifterShiftTap
,RemoveFeederBay
,RemoveHvdcLine
,RemoveSubstation
,RemoveVoltageLevel
,ReplaceTeePointByVoltageLevelOnLine
,ReplaceTieLinesByLines
,RevertConnectVoltageLevelOnLine
,RevertCreateLineOnLine
,ScriptNetworkModification
,ShuntCompensatorModification
- Author:
- Miora Vedelago <miora.ralambotiana at rte-france.com>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Applies the modification to the given network.void
apply
(Network network, boolean throwException, ComputationManager computationManager, Reporter reporter) Applies the modification to the given network.void
void
apply
(Network network, ComputationManager computationManager) void
apply
(Network network, ComputationManager computationManager, Reporter reporter) void
apply
(Network network, NamingStrategy namingStrategy) void
apply
(Network network, NamingStrategy namingStrategy, boolean throwException, Reporter reporter) Applies the modification to the given network.void
apply
(Network network, NamingStrategy namingStrategy, Reporter reporter) void
apply
(Network network, NamingStrategy namingStrategy, ComputationManager computationManager) void
apply
(Network network, NamingStrategy namingStrategy, ComputationManager computationManager, Reporter reporter) protected void
logOrThrow
(boolean throwException, String message) Utility during apply functions, logs or throw the message.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.powsybl.iidm.modification.NetworkModification
apply
-
Constructor Details
-
AbstractNetworkModification
public AbstractNetworkModification()
-
-
Method Details
-
apply
- Specified by:
apply
in interfaceNetworkModification
-
apply
- Specified by:
apply
in interfaceNetworkModification
-
apply
- Specified by:
apply
in interfaceNetworkModification
-
apply
- Specified by:
apply
in interfaceNetworkModification
-
apply
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.- Specified by:
apply
in interfaceNetworkModification
-
apply
public void apply(Network network, boolean throwException, ComputationManager computationManager, Reporter reporter) 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.- Specified by:
apply
in interfaceNetworkModification
-
apply
- Specified by:
apply
in interfaceNetworkModification
-
apply
public void apply(Network network, NamingStrategy namingStrategy, ComputationManager computationManager) - Specified by:
apply
in interfaceNetworkModification
-
apply
public void apply(Network network, NamingStrategy namingStrategy, ComputationManager computationManager, Reporter reporter) - Specified by:
apply
in interfaceNetworkModification
-
apply
- Specified by:
apply
in interfaceNetworkModification
-
apply
public void apply(Network network, NamingStrategy namingStrategy, boolean throwException, Reporter reporter) 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.- Specified by:
apply
in interfaceNetworkModification
-
logOrThrow
Utility during apply functions, logs or throw the message.- Parameters:
throwException
- if true will throwPowsyblException
with the given message
-