Package com.powsybl.contingency
Class SubContingenciesProvider
- java.lang.Object
-
- com.powsybl.contingency.SubContingenciesProvider
-
- All Implemented Interfaces:
ContingenciesProvider
public class SubContingenciesProvider extends Object implements ContingenciesProvider
A contingencies provider which provides a subset of another provider, defined by aPartition
. For exemple, if the other provider defines 10 contingencies, an instance of this provider will return the 5 first contingencies for the partition 1/2, or the 5 next for the partition 2/2.- Author:
- Sylvain Leclerc
-
-
Constructor Summary
Constructors Constructor Description SubContingenciesProvider(ContingenciesProvider delegate, Partition partition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Contingency>
getContingencies(Network network)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.powsybl.contingency.ContingenciesProvider
asScript
-
-
-
-
Constructor Detail
-
SubContingenciesProvider
public SubContingenciesProvider(ContingenciesProvider delegate, Partition partition)
-
-
Method Detail
-
getContingencies
public List<Contingency> getContingencies(Network network)
- Specified by:
getContingencies
in interfaceContingenciesProvider
-
-