Interface Branch<I extends Branch<I>>
- All Superinterfaces:
Extendable<I>
,Identifiable<I>
- All Known Subinterfaces:
Line
,TieLine
,TwoWindingsTransformer
Characteristics
Attribute | Type | Unit | Required | Defaut value | Description |
---|---|---|---|---|---|
Id | String | - | yes | - | Unique identifier of the branch |
Name | String | - | yes | - | Human-readable name of the branch |
R | double | Ω | yes | - | The series resistance |
X | double | Ω | yes | - | The series reactance |
G1 | double | S | yes | - | The first side shunt conductance |
B1 | double | S | yes | - | The first side shunt susceptance |
G2 | double | S | yes | - | The second side shunt conductance |
B2 | double | S | yes | - | The second side shunt susceptance |
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Cancel the selectedOperationalLimitsGroup
on side 1.void
Cancel the selectedOperationalLimitsGroup
on side 2.boolean
checkPermanentLimit
(TwoSides side, double limitReductionValue, LimitType type) boolean
checkPermanentLimit
(TwoSides side, LimitType type) boolean
checkPermanentLimit1
(double limitReductionValue, LimitType type) boolean
boolean
checkPermanentLimit2
(double limitReductionValue, LimitType type) boolean
checkTemporaryLimits
(TwoSides side, double limitReductionValue, LimitType type) checkTemporaryLimits
(TwoSides side, LimitType type) checkTemporaryLimits1
(double limitReductionValue, LimitType type) checkTemporaryLimits2
(double limitReductionValue, LimitType type) default Optional<ActivePowerLimits>
getActivePowerLimits
(TwoSides side) default Optional<ActivePowerLimits>
Get theActivePowerLimits
of the selectedOperationalLimitsGroup
on side 1.default Optional<ActivePowerLimits>
Get theActivePowerLimits
of the selectedOperationalLimitsGroup
on side 2.default Optional<ApparentPowerLimits>
default Optional<ApparentPowerLimits>
Get theApparentPowerLimits
of the selectedOperationalLimitsGroup
on side 1.default Optional<ApparentPowerLimits>
Get theApparentPowerLimits
of the selectedOperationalLimitsGroup
on side 2.default Optional<CurrentLimits>
getCurrentLimits
(TwoSides side) default Optional<CurrentLimits>
Get theCurrentLimits
of the selectedOperationalLimitsGroup
on side 1.default Optional<CurrentLimits>
Get theCurrentLimits
of the selectedOperationalLimitsGroup
on side 2.default Optional<? extends LoadingLimits>
default ActivePowerLimits
default ActivePowerLimits
Get theActivePowerLimits
of the selectedOperationalLimitsGroup
on side 1.default ActivePowerLimits
Get theActivePowerLimits
of the selectedOperationalLimitsGroup
on side 2.default ApparentPowerLimits
default ApparentPowerLimits
Get theApparentPowerLimits
of the selectedOperationalLimitsGroup
on side 1.default ApparentPowerLimits
Get theApparentPowerLimits
of the selectedOperationalLimitsGroup
on side 2.default CurrentLimits
default CurrentLimits
Get theCurrentLimits
of the selectedOperationalLimitsGroup
on side 1.default CurrentLimits
Get theCurrentLimits
of the selectedOperationalLimitsGroup
on side 2.default LoadingLimits
getNullableLimits
(LimitType type, TwoSides side) Get theOperationalLimitsGroup
corresponding to an ID on side 1.Get theOperationalLimitsGroup
corresponding to an ID on side 2.Get the collection of the definedOperationalLimitsGroup
on side 1.Get the collection of the definedOperationalLimitsGroup
on side 2.int
Get the selectedOperationalLimitsGroup
on side 1.Get the selectedOperationalLimitsGroup
on side 2.Get theOperationalLimitsGroup
corresponding to an ID on side 1.Get theOperationalLimitsGroup
corresponding to an ID on side 2.getTerminal
(TwoSides side) getTerminal
(String voltageLevelId) Get the first terminal.Get the second terminal.boolean
Only checks overloading for LimitType.Current and permanent limitsboolean
isOverloaded
(double limitReductionValue) Only checks overloading for LimitType.Current and permanent limitsCreate an adder to add a newActivePowerLimits
in the selectedOperationalLimitsGroup
on side 1.Create an adder to add a newActivePowerLimits
in the selectedOperationalLimitsGroup
on side 2.Create an adder to add a newApparentPowerLimits
in the selectedOperationalLimitsGroup
on side 1.Create an adder to add a newApparentPowerLimits
in the selectedOperationalLimitsGroup
on side 2.Create an adder to add a newCurrentLimits
in the selectedOperationalLimitsGroup
on side 1.Create an adder to add a newCurrentLimits
in the selectedOperationalLimitsGroup
on side 2.Create a newOperationalLimitsGroup
on side 1 with the given ID.Create a newOperationalLimitsGroup
on side 2 with the given ID.void
Remove theOperationalLimitsGroup
corresponding to the given ID on side 1.void
Remove theOperationalLimitsGroup
corresponding to the given ID on side 2.void
Set theOperationalLimitsGroup
corresponding to the given ID as as the selected one on side 1.void
Set theOperationalLimitsGroup
corresponding to the given ID as as the selected one on side 2.Methods inherited from interface com.powsybl.commons.extensions.Extendable
addExtension, getExtension, getExtensionByName, getExtensions, getImplementationName, newExtension, removeExtension
Methods inherited from interface com.powsybl.iidm.network.Identifiable
addAlias, addAlias, addAlias, addAlias, getAliases, getAliasFromType, getAliasType, getId, getNameOrId, getNetwork, getOptionalName, getParentNetwork, getProperty, getProperty, getPropertyNames, getType, hasAliases, hasProperty, hasProperty, isFictitious, removeAlias, removeProperty, setFictitious, setName, setProperty
-
Method Details
-
getTerminal1
Terminal getTerminal1()Get the first terminal. -
getTerminal2
Terminal getTerminal2()Get the second terminal. -
getTerminal
-
getTerminal
-
getSide
-
getOperationalLimitsGroups1
Collection<OperationalLimitsGroup> getOperationalLimitsGroups1()Get the collection of the definedOperationalLimitsGroup
on side 1.- Returns:
- the
OperationalLimitsGroup
s on side 1.
-
getSelectedOperationalLimitsGroupId1
Get theOperationalLimitsGroup
corresponding to an ID on side 1.- Returns:
- the
OperationalLimitsGroup
of the given ID on side 1 if any, an emptyOptional
otherwise.
-
getOperationalLimitsGroup1
Get theOperationalLimitsGroup
corresponding to an ID on side 1.- Returns:
- the
OperationalLimitsGroup
of the given ID on side 1 if any, an emptyOptional
otherwise.
-
getSelectedOperationalLimitsGroup1
Optional<OperationalLimitsGroup> getSelectedOperationalLimitsGroup1()Get the selectedOperationalLimitsGroup
on side 1.- Returns:
- the selected
OperationalLimitsGroup
on side 1 if any, an emptyOptional
otherwise.
-
newOperationalLimitsGroup1
Create a new
OperationalLimitsGroup
on side 1 with the given ID.If a group of the given ID already exists, it is replaced silently.
- Returns:
- the newly created group
OperationalLimitsGroup
.
-
setSelectedOperationalLimitsGroup1
Set the
OperationalLimitsGroup
corresponding to the given ID as as the selected one on side 1.Throw a
PowsyblException
if the ID doesn't correspond to any existing group.Throw an
NullPointerException
if the ID isnull
. To reset the selected group, usecancelSelectedOperationalLimitsGroup1()
.- Parameters:
id
- an ID ofOperationalLimitsGroup
-
removeOperationalLimitsGroup1
Remove the
OperationalLimitsGroup
corresponding to the given ID on side 1.Throw an
NullPointerException
if the ID isnull
.- Parameters:
id
- an ID ofOperationalLimitsGroup
-
cancelSelectedOperationalLimitsGroup1
void cancelSelectedOperationalLimitsGroup1()Cancel the selected
OperationalLimitsGroup
on side 1.After calling this method, no
OperationalLimitsGroup
is selected on side 1. -
getCurrentLimits1
Get theCurrentLimits
of the selectedOperationalLimitsGroup
on side 1.- Returns:
CurrentLimits
of the selectedOperationalLimitsGroup
on side 1 if any,null
otherwise.
-
getNullableCurrentLimits1
Get theCurrentLimits
of the selectedOperationalLimitsGroup
on side 1.- Returns:
CurrentLimits
of the selectedOperationalLimitsGroup
on side 1 if any,null
otherwise.
-
getActivePowerLimits1
Get theActivePowerLimits
of the selectedOperationalLimitsGroup
on side 1.- Returns:
ActivePowerLimits
of the selectedOperationalLimitsGroup
on side 1 if any, an emptyOptional
otherwise.
-
getNullableActivePowerLimits1
Get theActivePowerLimits
of the selectedOperationalLimitsGroup
on side 1.- Returns:
ActivePowerLimits
of the selectedOperationalLimitsGroup
on side 1 if any,null
otherwise.
-
getApparentPowerLimits1
Get theApparentPowerLimits
of the selectedOperationalLimitsGroup
on side 1.- Returns:
ApparentPowerLimits
of the selectedOperationalLimitsGroup
on side 1 if any, an emptyOptional
otherwise.
-
getNullableApparentPowerLimits1
Get theApparentPowerLimits
of the selectedOperationalLimitsGroup
on side 1.- Returns:
ApparentPowerLimits
of the selectedOperationalLimitsGroup
on side 1 if any,null
otherwise.
-
newCurrentLimits1
CurrentLimitsAdder newCurrentLimits1()Create an adder to add a new
CurrentLimits
in the selectedOperationalLimitsGroup
on side 1.If there's no selected group, the adder will also create a new group with the default name and set it as selected. This operation is performed when the limits are created via
OperationalLimitsAdder.add()
, only if the limits to add are valid.- Returns:
- an adder allowing to create a new
CurrentLimits
in the selectedOperationalLimitsGroup
on side 1.
-
newActivePowerLimits1
ActivePowerLimitsAdder newActivePowerLimits1()Create an adder to add a new
ActivePowerLimits
in the selectedOperationalLimitsGroup
on side 1.If there's no selected group, the adder will also create a new group with the default name and set it as selected. This operation is performed when the limits are created via
OperationalLimitsAdder.add()
, only if the limits to add are valid.- Returns:
- an adder allowing to create a new
ActivePowerLimits
in the selectedOperationalLimitsGroup
on side 1.
-
newApparentPowerLimits1
ApparentPowerLimitsAdder newApparentPowerLimits1()Create an adder to add a new
ApparentPowerLimits
in the selectedOperationalLimitsGroup
on side 1.If there's no selected group, the adder will also create a new group with the default name and set it as selected. This operation is performed when the limits are created via
OperationalLimitsAdder.add()
, only if the limits to add are valid.- Returns:
- an adder allowing to create a new
ApparentPowerLimits
in the selectedOperationalLimitsGroup
on side 1.
-
getOperationalLimitsGroups2
Collection<OperationalLimitsGroup> getOperationalLimitsGroups2()Get the collection of the definedOperationalLimitsGroup
on side 2.- Returns:
- the
OperationalLimitsGroup
s on side 2.
-
getSelectedOperationalLimitsGroupId2
Get theOperationalLimitsGroup
corresponding to an ID on side 2.- Returns:
- the
OperationalLimitsGroup
of the given ID on side 2 if any, an emptyOptional
otherwise.
-
getOperationalLimitsGroup2
Get theOperationalLimitsGroup
corresponding to an ID on side 2.- Returns:
- the
OperationalLimitsGroup
of the given ID on side 2 if any, an emptyOptional
otherwise.
-
getSelectedOperationalLimitsGroup2
Optional<OperationalLimitsGroup> getSelectedOperationalLimitsGroup2()Get the selectedOperationalLimitsGroup
on side 2.- Returns:
- the selected
OperationalLimitsGroup
on side 2 if any, an emptyOptional
otherwise.
-
newOperationalLimitsGroup2
Create a new
OperationalLimitsGroup
on side 2 with the given ID.If a group of the given ID already exists, it is replaced silently.
- Returns:
- the newly created group
OperationalLimitsGroup
.
-
setSelectedOperationalLimitsGroup2
Set the
OperationalLimitsGroup
corresponding to the given ID as as the selected one on side 2.Throw a
PowsyblException
if the ID doesn't correspond to any existing group.Throw an
NullPointerException
if the ID isnull
. To reset the selected group, usecancelSelectedOperationalLimitsGroup2()
.- Parameters:
id
- an ID ofOperationalLimitsGroup
-
removeOperationalLimitsGroup2
Remove the
OperationalLimitsGroup
corresponding to the given ID on side 2.Throw an
NullPointerException
if the ID isnull
.- Parameters:
id
- an ID ofOperationalLimitsGroup
-
cancelSelectedOperationalLimitsGroup2
void cancelSelectedOperationalLimitsGroup2()Cancel the selected
OperationalLimitsGroup
on side 2.After calling this method, no
OperationalLimitsGroup
is selected on side 2. -
getCurrentLimits2
Get theCurrentLimits
of the selectedOperationalLimitsGroup
on side 2.- Returns:
CurrentLimits
of the selectedOperationalLimitsGroup
on side 2 if any,null
otherwise.
-
getNullableCurrentLimits2
Get theCurrentLimits
of the selectedOperationalLimitsGroup
on side 2.- Returns:
CurrentLimits
of the selectedOperationalLimitsGroup
on side 2 if any,null
otherwise.
-
getActivePowerLimits2
Get theActivePowerLimits
of the selectedOperationalLimitsGroup
on side 2.- Returns:
ActivePowerLimits
of the selectedOperationalLimitsGroup
on side 2 if any, an emptyOptional
otherwise.
-
getNullableActivePowerLimits2
Get theActivePowerLimits
of the selectedOperationalLimitsGroup
on side 2.- Returns:
ActivePowerLimits
of the selectedOperationalLimitsGroup
on side 2 if any,null
otherwise.
-
getApparentPowerLimits2
Get theApparentPowerLimits
of the selectedOperationalLimitsGroup
on side 2.- Returns:
ApparentPowerLimits
of the selectedOperationalLimitsGroup
on side 2 if any, an emptyOptional
otherwise.
-
getNullableApparentPowerLimits2
Get theApparentPowerLimits
of the selectedOperationalLimitsGroup
on side 2.- Returns:
ApparentPowerLimits
of the selectedOperationalLimitsGroup
on side 2 if any,null
otherwise.
-
newCurrentLimits2
CurrentLimitsAdder newCurrentLimits2()Create an adder to add a new
CurrentLimits
in the selectedOperationalLimitsGroup
on side 2.If there's no selected group, the adder will also create a new group with the default name and set it as selected. This operation is performed when the limits are created via
OperationalLimitsAdder.add()
, only if the limits to add are valid.- Returns:
- an adder allowing to create a new
CurrentLimits
in the selectedOperationalLimitsGroup
on side 2.
-
newActivePowerLimits2
ActivePowerLimitsAdder newActivePowerLimits2()Create an adder to add a new
ActivePowerLimits
in the selectedOperationalLimitsGroup
on side 2.If there's no selected group, the adder will also create a new group with the default name and set it as selected. This operation is performed when the limits are created via
OperationalLimitsAdder.add()
, only if the limits to add are valid.- Returns:
- an adder allowing to create a new
ActivePowerLimits
in the selectedOperationalLimitsGroup
on side 2.
-
newApparentPowerLimits2
ApparentPowerLimitsAdder newApparentPowerLimits2()Create an adder to add a new
ApparentPowerLimits
in the selectedOperationalLimitsGroup
on side 2.If there's no selected group, the adder will also create a new group with the default name and set it as selected. This operation is performed when the limits are created via
OperationalLimitsAdder.add()
, only if the limits to add are valid.- Returns:
- an adder allowing to create a new
ApparentPowerLimits
in the selectedOperationalLimitsGroup
on side 2.
-
getCurrentLimits
-
getActivePowerLimits
-
getApparentPowerLimits
-
getLimits
-
getNullableCurrentLimits
-
getNullableActivePowerLimits
-
getNullableApparentPowerLimits
-
getNullableLimits
-
isOverloaded
boolean isOverloaded()Only checks overloading for LimitType.Current and permanent limits -
isOverloaded
boolean isOverloaded(double limitReductionValue) Only checks overloading for LimitType.Current and permanent limits -
getOverloadDuration
int getOverloadDuration() -
checkPermanentLimit
-
checkPermanentLimit
-
checkPermanentLimit1
-
checkPermanentLimit1
-
checkPermanentLimit2
-
checkPermanentLimit2
-
checkTemporaryLimits
-
checkTemporaryLimits
-
checkTemporaryLimits1
-
checkTemporaryLimits1
-
checkTemporaryLimits2
-
checkTemporaryLimits2
-