Interface FlowsLimitsHolder
- All Known Subinterfaces:
DanglingLine
,ThreeWindingsTransformer.Leg
- Author:
- Miora Ralambotiana <miora.ralambotiana at rte-france.com>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Cancel the selectedOperationalLimitsGroup
.default Optional<ActivePowerLimits>
Get theActivePowerLimits
of the selectedOperationalLimitsGroup
.default Optional<ApparentPowerLimits>
Get theApparentPowerLimits
of the selectedOperationalLimitsGroup
.default Optional<CurrentLimits>
Get theCurrentLimits
of the selectedOperationalLimitsGroup
.default ActivePowerLimits
Get theActivePowerLimits
of the selectedOperationalLimitsGroup
.default ApparentPowerLimits
Get theApparentPowerLimits
of the selectedOperationalLimitsGroup
.default CurrentLimits
Get theCurrentLimits
of the selectedOperationalLimitsGroup
.Get theOperationalLimitsGroup
corresponding to an ID.Get the collection of the definedOperationalLimitsGroup
.Get the selectedOperationalLimitsGroup
.Get the ID of the selectedOperationalLimitsGroup
.Create an adder to add a newActivePowerLimits
in the selectedOperationalLimitsGroup
.Create an adder to add a newApparentPowerLimits
in the selectedOperationalLimitsGroup
.Create an adder to add a newCurrentLimits
in the selectedOperationalLimitsGroup
.Create a newOperationalLimitsGroup
with the given ID.void
Remove theOperationalLimitsGroup
corresponding to the given ID.void
Set theOperationalLimitsGroup
corresponding to the given ID as as the selected one.
-
Method Details
-
getOperationalLimitsGroups
Collection<OperationalLimitsGroup> getOperationalLimitsGroups()Get the collection of the definedOperationalLimitsGroup
.- Returns:
- the
OperationalLimitsGroup
s.
-
getSelectedOperationalLimitsGroupId
Get the ID of the selectedOperationalLimitsGroup
.- Returns:
- the ID of the selected
OperationalLimitsGroup
if any, an emptyOptional
otherwise.
-
getOperationalLimitsGroup
Get theOperationalLimitsGroup
corresponding to an ID.- Returns:
- the
OperationalLimitsGroup
of the given ID if any, an emptyOptional
otherwise.
-
getSelectedOperationalLimitsGroup
Optional<OperationalLimitsGroup> getSelectedOperationalLimitsGroup()Get the selectedOperationalLimitsGroup
.- Returns:
- the selected
OperationalLimitsGroup
if any, an emptyOptional
otherwise.
-
newOperationalLimitsGroup
Create a new
OperationalLimitsGroup
with the given ID.If a group of the given ID already exists, it is replaced silently.
- Returns:
- the newly created group
OperationalLimitsGroup
.
-
setSelectedOperationalLimitsGroup
Set the
OperationalLimitsGroup
corresponding to the given ID as as the selected one.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, usecancelSelectedOperationalLimitsGroup()
.- Parameters:
id
- an ID ofOperationalLimitsGroup
-
removeOperationalLimitsGroup
Remove the
OperationalLimitsGroup
corresponding to the given ID.Throw an
NullPointerException
if the ID isnull
.- Parameters:
id
- an ID ofOperationalLimitsGroup
-
cancelSelectedOperationalLimitsGroup
void cancelSelectedOperationalLimitsGroup()Cancel the selected
OperationalLimitsGroup
.After calling this method, no
OperationalLimitsGroup
is selected. -
getCurrentLimits
Get theCurrentLimits
of the selectedOperationalLimitsGroup
.- Returns:
CurrentLimits
of the selectedOperationalLimitsGroup
if any,null
otherwise.
-
getNullableCurrentLimits
Get theCurrentLimits
of the selectedOperationalLimitsGroup
.- Returns:
CurrentLimits
of the selectedOperationalLimitsGroup
if any,null
otherwise.
-
getActivePowerLimits
Get theActivePowerLimits
of the selectedOperationalLimitsGroup
.- Returns:
ActivePowerLimits
of the selectedOperationalLimitsGroup
if any, an emptyOptional
otherwise.
-
getNullableActivePowerLimits
Get theActivePowerLimits
of the selectedOperationalLimitsGroup
.- Returns:
ActivePowerLimits
of the selectedOperationalLimitsGroup
if any,null
otherwise.
-
getApparentPowerLimits
Get theApparentPowerLimits
of the selectedOperationalLimitsGroup
.- Returns:
ApparentPowerLimits
of the selectedOperationalLimitsGroup
if any, an emptyOptional
otherwise.
-
getNullableApparentPowerLimits
Get theApparentPowerLimits
of the selectedOperationalLimitsGroup
.- Returns:
ApparentPowerLimits
of the selectedOperationalLimitsGroup
if any,null
otherwise.
-
newCurrentLimits
CurrentLimitsAdder newCurrentLimits()Create an adder to add a new
CurrentLimits
in the selectedOperationalLimitsGroup
.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
.
-
newApparentPowerLimits
ApparentPowerLimitsAdder newApparentPowerLimits()Create an adder to add a new
ApparentPowerLimits
in the selectedOperationalLimitsGroup
.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
.
-
newActivePowerLimits
ActivePowerLimitsAdder newActivePowerLimits()Create an adder to add a new
ActivePowerLimits
in the selectedOperationalLimitsGroup
.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
.
-