Package com.powsybl.iidm.modification
Class ConnectableConnection
java.lang.Object
com.powsybl.iidm.modification.AbstractNetworkModification
com.powsybl.iidm.modification.AbstractConnectDisconnectModification
com.powsybl.iidm.modification.ConnectableConnection
- All Implemented Interfaces:
NetworkModification
This network modification is used to connect a network element to the closest bus or bus bar section.
It works on:
- Connectables by connecting their terminals
- HVDC lines by connecting the terminals of their converter stations
- Tie lines by connecting the terminals of their underlying dangling lines
The user can specify a side of the element to connect. If no side is specified, the network modification will try to connect every side.
- Author:
- Nicolas Rol <nicolas.rol at rte-france.com>
-
Field Summary
Fields inherited from class com.powsybl.iidm.modification.AbstractNetworkModification
DEFAULT_IMPACT, EPSILON, impact
-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(Network network, NamingStrategy namingStrategy, boolean throwException, ComputationManager computationManager, ReportNode reportNode) Applies the modification to the given network.getName()
Returns the name of the network modification.Methods inherited from class com.powsybl.iidm.modification.AbstractConnectDisconnectModification
hasImpactOnNetwork
Methods inherited from class com.powsybl.iidm.modification.AbstractNetworkModification
apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, apply, areValuesEqual, areValuesEqual, checkVoltageLevel, isValueOutsideRange, logOrThrow, reportOnDryRunStart, reportOnInconclusiveDryRun
-
Method Details
-
getName
Description copied from class:AbstractNetworkModification
Returns the name of the network modification. That name corresponds to the type of network modification- Specified by:
getName
in classAbstractNetworkModification
- Returns:
- the name of the network modification
-
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. IfthrowException
is set totrue
, 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.
-