Package com.powsybl.contingency
Class Contingency
- java.lang.Object
-
- com.powsybl.commons.extensions.AbstractExtendable<Contingency>
-
- com.powsybl.contingency.Contingency
-
- All Implemented Interfaces:
Extendable<Contingency>
public class Contingency extends AbstractExtendable<Contingency>
- Author:
- Geoffroy Jamgotchian
, Teofil Calin BANC , Mathieu Bague
-
-
Constructor Summary
Constructors Constructor Description Contingency(String id, ContingencyElement... elements)
Contingency(String id, List<ContingencyElement> elements)
-
Method Summary
-
Methods inherited from class com.powsybl.commons.extensions.AbstractExtendable
addExtension, getExtension, getExtensionByName, getExtensions, getImplementationName, removeExtension
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.powsybl.commons.extensions.Extendable
newExtension
-
-
-
-
Constructor Detail
-
Contingency
public Contingency(String id, ContingencyElement... elements)
-
Contingency
public Contingency(String id, List<ContingencyElement> elements)
-
-
Method Detail
-
getId
public String getId()
-
getElements
public List<ContingencyElement> getElements()
-
addElement
public void addElement(ContingencyElement element)
-
removeElement
public void removeElement(ContingencyElement element)
-
toTask
public ModificationTask toTask()
-
checkValidity
@Deprecated public static List<Contingency> checkValidity(List<Contingency> contingencies, Network network)
Deprecated.UseContingencyList.getValidContingencies(List, Network)
()} instead.Return a list of valid contingencies.
-
builder
public static ContingencyBuilder builder(String id)
-
branch
public static Contingency branch(String id)
-
branch
public static Contingency branch(String id, String voltageLevelId)
-
busbarSection
public static Contingency busbarSection(String id)
-
generator
public static Contingency generator(String id)
-
hvdcLine
public static Contingency hvdcLine(String id)
-
hvdcLine
public static Contingency hvdcLine(String id, String voltageLevelId)
-
line
public static Contingency line(String id)
-
line
public static Contingency line(String id, String voltageLevelId)
-
shuntCompensator
public static Contingency shuntCompensator(String id)
-
staticVarCompensator
public static Contingency staticVarCompensator(String id)
-
twoWindingsTransformer
public static Contingency twoWindingsTransformer(String id)
-
twoWindingsTransformer
public static Contingency twoWindingsTransformer(String id, String voltageLevelId)
-
danglingLine
public static Contingency danglingLine(String id)
-
-