Package com.powsybl.loadflow
Class LoadFlowResultImpl.ComponentResultImpl
java.lang.Object
com.powsybl.loadflow.LoadFlowResultImpl.ComponentResultImpl
- All Implemented Interfaces:
LoadFlowResult.ComponentResult
- Enclosing class:
- LoadFlowResultImpl
public static class LoadFlowResultImpl.ComponentResultImpl
extends Object
implements LoadFlowResult.ComponentResult
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.powsybl.loadflow.LoadFlowResult.ComponentResult
LoadFlowResult.ComponentResult.Status
-
Constructor Summary
ConstructorDescriptionComponentResultImpl
(int connectedComponentNum, int synchronousComponentNum, LoadFlowResult.ComponentResult.Status status, int iterationCount, String slackBusId, double slackBusActivePowerMismatch, double distributedActivePower) ComponentResultImpl
(int connectedComponentNum, int synchronousComponentNum, LoadFlowResult.ComponentResult.Status status, String statusText, Map<String, String> metrics, int iterationCount, String referenceBusId, List<LoadFlowResult.SlackBusResult> slackBusResults, double distributedActivePower) -
Method Summary
Modifier and TypeMethodDescriptionint
Get connected component number.double
If distributed slack is activatedLoadFlowParameters.isDistributedSlack()
, the active power in MW that has been distributed from slack bus to generators/loads (depending ofLoadFlowParameters.getBalanceType()
value)int
Get iteration count.Get metrics.Get the reference bus id (angle reference)double
Get slack bus active power mismatch in MW.Get the slack bus id.get slack results of all slack busesGet detailed status of the computation on this component.Get status text of the computation on this component.int
Get synchronous component number.
-
Constructor Details
-
ComponentResultImpl
public ComponentResultImpl(int connectedComponentNum, int synchronousComponentNum, LoadFlowResult.ComponentResult.Status status, int iterationCount, String slackBusId, double slackBusActivePowerMismatch, double distributedActivePower) -
ComponentResultImpl
public ComponentResultImpl(int connectedComponentNum, int synchronousComponentNum, LoadFlowResult.ComponentResult.Status status, String statusText, Map<String, String> metrics, int iterationCount, String referenceBusId, List<LoadFlowResult.SlackBusResult> slackBusResults, double distributedActivePower)
-
-
Method Details
-
getConnectedComponentNum
public int getConnectedComponentNum()Description copied from interface:LoadFlowResult.ComponentResult
Get connected component number.- Specified by:
getConnectedComponentNum
in interfaceLoadFlowResult.ComponentResult
- Returns:
- connected component number
-
getSynchronousComponentNum
public int getSynchronousComponentNum()Description copied from interface:LoadFlowResult.ComponentResult
Get synchronous component number.- Specified by:
getSynchronousComponentNum
in interfaceLoadFlowResult.ComponentResult
- Returns:
- component number
-
getStatus
Description copied from interface:LoadFlowResult.ComponentResult
Get detailed status of the computation on this component.- Specified by:
getStatus
in interfaceLoadFlowResult.ComponentResult
- Returns:
- the detailed status of the computation on this component
-
getStatusText
Description copied from interface:LoadFlowResult.ComponentResult
Get status text of the computation on this component. Status text is implementation specific and can be used to provide additional information about e.g. failed reason.- Specified by:
getStatusText
in interfaceLoadFlowResult.ComponentResult
- Returns:
- the status text of the computation on this component
-
getMetrics
Description copied from interface:LoadFlowResult.ComponentResult
Get metrics. Metrics are generic key/value pairs and are specific to a loadflow implementation.- Specified by:
getMetrics
in interfaceLoadFlowResult.ComponentResult
- Returns:
- the metrics for this component
-
getIterationCount
public int getIterationCount()Description copied from interface:LoadFlowResult.ComponentResult
Get iteration count.- Specified by:
getIterationCount
in interfaceLoadFlowResult.ComponentResult
- Returns:
- the iteration count
-
getReferenceBusId
Description copied from interface:LoadFlowResult.ComponentResult
Get the reference bus id (angle reference)- Specified by:
getReferenceBusId
in interfaceLoadFlowResult.ComponentResult
- Returns:
- the reference bus id
-
getSlackBusResults
Description copied from interface:LoadFlowResult.ComponentResult
get slack results of all slack buses- Specified by:
getSlackBusResults
in interfaceLoadFlowResult.ComponentResult
- Returns:
- list of slack results
-
getSlackBusId
Description copied from interface:LoadFlowResult.ComponentResult
Get the slack bus id.- Specified by:
getSlackBusId
in interfaceLoadFlowResult.ComponentResult
- Returns:
- the slack bus id
-
getSlackBusActivePowerMismatch
public double getSlackBusActivePowerMismatch()Description copied from interface:LoadFlowResult.ComponentResult
Get slack bus active power mismatch in MW.- Specified by:
getSlackBusActivePowerMismatch
in interfaceLoadFlowResult.ComponentResult
- Returns:
- the slack bus active power mismatch in MW
-
getDistributedActivePower
public double getDistributedActivePower()Description copied from interface:LoadFlowResult.ComponentResult
If distributed slack is activatedLoadFlowParameters.isDistributedSlack()
, the active power in MW that has been distributed from slack bus to generators/loads (depending ofLoadFlowParameters.getBalanceType()
value)- Specified by:
getDistributedActivePower
in interfaceLoadFlowResult.ComponentResult
- Returns:
- the active power in MW that has been distributed
-