Package com.powsybl.loadflow
Interface LoadFlowResult.ComponentResult
- All Known Implementing Classes:
LoadFlowResultImpl.ComponentResultImpl
- Enclosing interface:
- LoadFlowResult
public static interface LoadFlowResult.ComponentResult
Result for one component
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Component calculation status -
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
Deprecated.Deprecated.usegetSlackBusResults()
insteadget 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.
-
Method Details
-
getConnectedComponentNum
int getConnectedComponentNum()Get connected component number.- Returns:
- connected component number
-
getSynchronousComponentNum
int getSynchronousComponentNum()Get synchronous component number.- Returns:
- component number
-
getStatus
LoadFlowResult.ComponentResult.Status getStatus()Get detailed status of the computation on this component.- Returns:
- the detailed status of the computation on this component
-
getStatusText
String getStatusText()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.- Returns:
- the status text of the computation on this component
-
getMetrics
Get metrics. Metrics are generic key/value pairs and are specific to a loadflow implementation.- Returns:
- the metrics for this component
-
getIterationCount
int getIterationCount()Get iteration count.- Returns:
- the iteration count
-
getReferenceBusId
String getReferenceBusId()Get the reference bus id (angle reference)- Returns:
- the reference bus id
-
getSlackBusResults
List<LoadFlowResult.SlackBusResult> getSlackBusResults()get slack results of all slack buses- Returns:
- list of slack results
-
getSlackBusId
Deprecated.usegetSlackBusResults()
insteadGet the slack bus id.- Returns:
- the slack bus id
-
getSlackBusActivePowerMismatch
Deprecated.usegetSlackBusResults()
insteadGet slack bus active power mismatch in MW.- Returns:
- the slack bus active power mismatch in MW
-
getDistributedActivePower
double getDistributedActivePower()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)- Returns:
- the active power in MW that has been distributed
-
getSlackBusResults()
instead