Module com.powsybl.contingency.api
Interface ContingencyList
-
- All Known Implementing Classes:
AbstractEquipmentCriterionContingencyList
,AbstractLineCriterionContingencyList
,DefaultContingencyList
,HvdcLineCriterionContingencyList
,IdentifierContingencyList
,InjectionCriterionContingencyList
,LineCriterionContingencyList
,ListOfContingencyLists
,ThreeWindingsTransformerCriterionContingencyList
,TieLineCriterionContingencyList
,TwoWindingsTransformerCriterionContingencyList
public interface ContingencyList
- Author:
- Mathieu Bague
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Contingency>
getContingencies(Network network)
Return a list of contingency for the given network.String
getName()
Return the name of this contingency listString
getType()
Return the type of this contingency liststatic List<Contingency>
getValidContingencies(List<Contingency> contingencies, Network network)
Return only valid contingencies based on given list of contingencies and networkstatic String
getVersion()
static ContingencyList
load(String filename, InputStream stream)
Load aContingencyList
from an input stream of given file namestatic ContingencyList
load(Path path)
Load aContingencyList
from a pathstatic ContingencyList
of(Contingency... contingencies)
Create a contingency list from a set of contingencies
-
-
-
Field Detail
-
VERSION
static final String VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getVersion
static String getVersion()
-
getName
String getName()
Return the name of this contingency list
-
getType
String getType()
Return the type of this contingency list
-
getContingencies
List<Contingency> getContingencies(Network network)
Return a list of contingency for the given network.
-
load
static ContingencyList load(Path path)
Load aContingencyList
from a path- Parameters:
path
- The file to load- Returns:
- a contingency list
-
load
static ContingencyList load(String filename, InputStream stream)
Load aContingencyList
from an input stream of given file name- Parameters:
filename
- The input file namestream
- The input stream to load- Returns:
- a contingency list
-
of
static ContingencyList of(Contingency... contingencies)
Create a contingency list from a set of contingencies
-
getValidContingencies
static List<Contingency> getValidContingencies(List<Contingency> contingencies, Network network)
Return only valid contingencies based on given list of contingencies and network
-
-