Package com.powsybl.loadflow
Interface LoadFlowResult
- All Known Implementing Classes:
LoadFlowResultImpl
public interface LoadFlowResult
Loadflow result API.
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>, Damien Jeandemange <damien.jeandemange at artelys.com>
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Result for one componentstatic interface
Result for one slack busstatic enum
Load Flow global calculation status, derived from allLoadFlowResult.ComponentResult
, usingLoadFlowResult.ComponentResult.Status
, but excluding non-calculated component i.e. excluding components having statusNO_CALCULATION
-
Method Summary
Modifier and TypeMethodDescriptiondefault List<LoadFlowResult.ComponentResult>
Get per component results.getLogs()
Get logs.Get metrics.Get the global status.default boolean
isFailed()
Indicates if faileddefault boolean
Indicates if fully convergedboolean
isOk()
Deprecated.default boolean
Indicates if partially converged
-
Method Details
-
isOk
Deprecated.Get the global status. Must be set to true/ok if at least one component has converged. Note that when computing multiple components (islands), it is preferable to evaluate the individual component status usingLoadFlowResult.ComponentResult.getStatus()
.- Returns:
- the global status
-
getStatus
LoadFlowResult.Status getStatus()Get the global status.- Returns:
- the global status
-
isFullyConverged
default boolean isFullyConverged()Indicates if fully converged- Returns:
- true if status is
LoadFlowResult.Status.FULLY_CONVERGED
-
isPartiallyConverged
default boolean isPartiallyConverged()Indicates if partially converged- Returns:
- true if status is
LoadFlowResult.Status.PARTIALLY_CONVERGED
-
isFailed
default boolean isFailed()Indicates if failed- Returns:
- true if status is
LoadFlowResult.Status.FAILED
-
getMetrics
Get metrics. Metrics are generic key/value pairs and are specific to a loadflow implementation.- Returns:
- the metrics
-
getLogs
String getLogs()Get logs.- Returns:
- logs
-
getComponentResults
Get per component results.- Returns:
- per component results
-
getStatus()
orisFullyConverged()
()} orisPartiallyConverged()
instead