Package com.powsybl.iidm.network
Interface BatteryAdder
- All Superinterfaces:
IdentifiableAdder<Battery,
,BatteryAdder> InjectionAdder<Battery,
BatteryAdder>
- All Known Implementing Classes:
BatteryAdderImpl
To create a battery, from a
VoltageLevel
instance call
the VoltageLevel.newBattery()
method to get a battery builder
instance.
Example:
VoltageLevel vl = ... Battery b = vl.newBattery() .setId("b1") ... .add();
- Author:
- Ghiles Abdellah <ghiles.abdellah at rte-france.com>
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionadd()
Build the Battery object.setMaxP
(double maxP) Set the maximal active power in MW.setMinP
(double minP) Set the minimal active power in MW.default BatteryAdder
setP0
(double p0) Deprecated.default BatteryAdder
setQ0
(double q0) Deprecated.UsesetTargetQ(double)
instead.setTargetP
(double targetP) Set the target active power in MW.setTargetQ
(double targetQ) Set the target reactive power in MVar.Methods inherited from interface com.powsybl.iidm.network.IdentifiableAdder
setEnsureIdUnicity, setFictitious, setId, setName
Methods inherited from interface com.powsybl.iidm.network.InjectionAdder
setBus, setConnectableBus, setNode
-
Method Details
-
setP0
Deprecated.UsesetTargetP(double)
instead. -
setTargetP
Set the target active power in MW.Depends on the working variant.
- See Also:
-
setQ0
Deprecated.UsesetTargetQ(double)
instead. -
setTargetQ
Set the target reactive power in MVar.Depends on the working variant.
- See Also:
-
setMinP
Set the minimal active power in MW. -
setMaxP
Set the maximal active power in MW. -
add
Battery add()Build the Battery object. This are the checks that are performed before creating the object : - p0 is not equal to Double.NaN -> p0 is set - q0 is not equal to Double.NaN -> q0 is set - minP is not equal to Double.NaN -> minP is set - maxP is not equal to Double.NaN -> maxP is set - minP is less than maxP - minP <= p0 <= maxP- Specified by:
add
in interfaceIdentifiableAdder<Battery,
BatteryAdder> - Specified by:
add
in interfaceInjectionAdder<Battery,
BatteryAdder> - Returns:
Battery
-
setTargetP(double)
instead.