Class DefaultLimitReductionsApplier
- All Implemented Interfaces:
LimitsComputer<Identifiable<?>,
LoadingLimits>
Implementation of AbstractLimitReductionsApplier
working with Identifiable
.
You can retrieve the reduced limits by using the AbstractLimitsComputerWithCache.computeLimits(Object, LimitType, ThreeSides, boolean)
method
(with an Identifiable
as first parameter).
It returns a LimitsContainer
containing both
the original limits (accessible via LimitsContainer.getOriginalLimits()
) and the reduced limits
(accessible via LimitsContainer.getLimits()
).
Since LimitReductions depend on the contingency context, you should call AbstractLimitReductionsApplier.setWorkingContingency(String contingencyId)
each time the studied contingency change (use null
for pre-contingency state).
- Author:
- Olivier Perrin <olivier.perrin at rte-france.com>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.powsybl.security.limitreduction.AbstractLimitReductionsApplier
AbstractLimitReductionsApplier.OriginalLimitsGetter<P,
L> Nested classes/interfaces inherited from interface com.powsybl.iidm.network.limitmodification.LimitsComputer
LimitsComputer.NoModificationsImpl
-
Field Summary
Fields inherited from interface com.powsybl.iidm.network.limitmodification.LimitsComputer
NO_MODIFICATIONS
-
Constructor Summary
ConstructorDescriptionDefaultLimitReductionsApplier
(List<LimitReduction> limitReductionList) Create a newAbstractLimitReductionsApplier
forIdentifiable
using a list of reductions. -
Method Summary
Modifier and TypeMethodDescriptionprotected NetworkElement
asNetworkElement
(Identifiable<?> identifiable) Return aNetworkElement
representation ofprocessable
(itself if it already is aNetworkElement
or an adapter).Return theAbstractLimitsReducer
creator, which will be used to create an object of typeAbstractLimitReductionsApplier
containing the modified limits.Return anAbstractLimitReductionsApplier.OriginalLimitsGetter
allowing to retrieveAbstractLimitReductionsApplier
from a network element of typeAbstractLimitReductionsApplier
.Methods inherited from class com.powsybl.security.limitreduction.AbstractLimitReductionsApplier
computeUncachedLimits, isContingencyInContingencyContext, isNetworkElementAffectedByLimitReduction, isPermanentLimitAffectedByLimitReduction, isTemporaryLimitAffectedByLimitReduction, setWorkingContingency
Methods inherited from class com.powsybl.iidm.network.limitmodification.AbstractLimitsComputerWithCache
clearCache, computeLimits, putInCache
-
Constructor Details
-
DefaultLimitReductionsApplier
Create a newAbstractLimitReductionsApplier
forIdentifiable
using a list of reductions.- Parameters:
limitReductionList
- the list of the reductions to use when computing reduced limits.
-
-
Method Details
-
getOriginalLimitsGetter
protected AbstractLimitReductionsApplier.OriginalLimitsGetter<Identifiable<?>,LoadingLimits> getOriginalLimitsGetter()Description copied from class:AbstractLimitReductionsApplier
Return anAbstractLimitReductionsApplier.OriginalLimitsGetter
allowing to retrieveAbstractLimitReductionsApplier
from a network element of typeAbstractLimitReductionsApplier
.- Specified by:
getOriginalLimitsGetter
in classAbstractLimitReductionsApplier<Identifiable<?>,
LoadingLimits> - Returns:
- an original limits getter
-
getLimitsReducerCreator
protected AbstractLimitsReducerCreator<LoadingLimits,AbstractLimitsReducer<LoadingLimits>> getLimitsReducerCreator()Description copied from class:AbstractLimitReductionsApplier
Return theAbstractLimitsReducer
creator, which will be used to create an object of typeAbstractLimitReductionsApplier
containing the modified limits.- Specified by:
getLimitsReducerCreator
in classAbstractLimitReductionsApplier<Identifiable<?>,
LoadingLimits> - Returns:
- the creator for
AbstractLimitsReducer
-
asNetworkElement
Description copied from class:AbstractLimitReductionsApplier
Return a
NetworkElement
representation ofprocessable
(itself if it already is aNetworkElement
or an adapter).- Specified by:
asNetworkElement
in classAbstractLimitReductionsApplier<Identifiable<?>,
LoadingLimits> - Parameters:
identifiable
- the object which limits should be computed.- Returns:
- a
NetworkElement
representation ofprocessable
-