Class FlowbasedComputationImpl
java.lang.Object
com.powsybl.openrao.flowbasedcomputation.impl.FlowbasedComputationImpl
- All Implemented Interfaces:
com.powsybl.commons.config.PlatformConfigNamedProvider
,com.powsybl.commons.Versionable
,FlowbasedComputationProvider
@AutoService(FlowbasedComputationProvider.class)
public class FlowbasedComputationImpl
extends Object
implements FlowbasedComputationProvider
Flowbased computation implementation
- Author:
- Sebastien Murgey <sebastien.murgey at rte-france.com>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.powsybl.commons.config.PlatformConfigNamedProvider
com.powsybl.commons.config.PlatformConfigNamedProvider.Finder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Set<NetworkAction>
findAllAvailableRemedialActionsForState
(Crac crac, State state) Find all remedial actions saved in CRAC, on a given network, at a given state.static Set<NetworkAction>
findAppliedNetworkActionsForState
(RaoResult raoResult, State state, Set<NetworkAction> networkActions) Find network actions saved in CRAC result extension on current working variant of given network, at a given state.static Map<RangeAction<?>,
Double> findAppliedRangeActionsForState
(RaoResult raoResult, State state) Find range actions saved in CRAC result extension on current working variant of given network, at a given state.getName()
run
(com.powsybl.iidm.network.Network network, Crac crac, RaoResult raoResult, com.powsybl.glsk.commons.ZonalData<com.powsybl.sensitivity.SensitivityVariableSet> glsk, FlowbasedComputationParameters parameters) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.powsybl.commons.config.PlatformConfigNamedProvider
getPlatformConfigName
-
Constructor Details
-
FlowbasedComputationImpl
public FlowbasedComputationImpl()
-
-
Method Details
-
getName
- Specified by:
getName
in interfacecom.powsybl.commons.config.PlatformConfigNamedProvider
- Specified by:
getName
in interfacecom.powsybl.commons.Versionable
-
getVersion
- Specified by:
getVersion
in interfacecom.powsybl.commons.Versionable
-
run
public CompletableFuture<FlowbasedComputationResult> run(com.powsybl.iidm.network.Network network, Crac crac, RaoResult raoResult, com.powsybl.glsk.commons.ZonalData<com.powsybl.sensitivity.SensitivityVariableSet> glsk, FlowbasedComputationParameters parameters) - Specified by:
run
in interfaceFlowbasedComputationProvider
-
findAllAvailableRemedialActionsForState
Find all remedial actions saved in CRAC, on a given network, at a given state.- Parameters:
crac
- CRAC that should contain result extensionstate
- State for which the RAs should be applied
-
findAppliedNetworkActionsForState
public static Set<NetworkAction> findAppliedNetworkActionsForState(RaoResult raoResult, State state, Set<NetworkAction> networkActions) Find network actions saved in CRAC result extension on current working variant of given network, at a given state.- Parameters:
raoResult
- Result of Rao computationstate
- State for which the RAs should be appliednetworkActions
- All network actions
-
findAppliedRangeActionsForState
public static Map<RangeAction<?>,Double> findAppliedRangeActionsForState(RaoResult raoResult, State state) Find range actions saved in CRAC result extension on current working variant of given network, at a given state.- Parameters:
raoResult
- Result of Rao computationstate
- State for which the RAs should be applied
-