Class CreateFeederBay
java.lang.Object
com.powsybl.iidm.modification.AbstractNetworkModification
com.powsybl.iidm.modification.topology.CreateFeederBay
- All Implemented Interfaces:
NetworkModification
This method adds a new injection bay on an existing busbar section. The voltage level containing the
busbar section should be described in node/breaker topology. The injection is created and connected to
the busbar section with a breaker and a closed disconnector. The injection is also connected to all
the parallel busbar sections, if any, with an open disconnector.
- Author:
- Coline Piloquet <coline.piloquet at rte-france.com>
-
Field Summary
Fields inherited from class com.powsybl.iidm.modification.AbstractNetworkModification
DEFAULT_IMPACT, EPSILON, impact
-
Method Summary
Modifier and TypeMethodDescriptionprotected Connectable<?>
add()
void
apply
(Network network, NamingStrategy namingStrategy, boolean throwException, ComputationManager computationManager, ReportNode reportNode) Applies the modification to the given network.protected String
getBusOrBusbarSectionId
(int side) protected ConnectablePosition.Direction
getDirection
(int side) protected ConnectablePositionAdder.FeederAdder<?>
getFeederAdder
(int side, ConnectablePositionAdder<?> connectablePositionAdder) getFeederName
(int side) getName()
Returns the name of the network modification.protected int
getNode
(int side, Connectable<?> connectable) protected Integer
getPositionOrder
(int side) protected VoltageLevel
getVoltageLevel
(int side, Connectable<?> connectable) hasImpactOnNetwork
(Network network) States if the network modification would change the current state of the network.protected void
protected void
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
-
Field Details
-
sides
protected final int[] sides
-
-
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
-
getBusOrBusbarSectionId
-
setBus
-
setNode
-
add
-
getVoltageLevel
-
getPositionOrder
-
getFeederName
-
getDirection
-
getNode
-
getFeederAdder
protected ConnectablePositionAdder.FeederAdder<?> getFeederAdder(int side, ConnectablePositionAdder<?> connectablePositionAdder) -
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. -
hasImpactOnNetwork
Description copied from interface:NetworkModification
States if the network modification would change the current state of the network. It has no impact on the network.- Specified by:
hasImpactOnNetwork
in interfaceNetworkModification
- Overrides:
hasImpactOnNetwork
in classAbstractNetworkModification
- Parameters:
network
- Network that serves as reference for the impact.- Returns:
- True if the network modification would have an impact on the network.
-