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
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addElement(ContingencyElement element)
static Contingency
branch(String id)
Creates a new contingency on the branch whose id is givenstatic Contingency
branch(String id, String voltageLevelId)
Creates a new contingency on the branch whose id is given, on the side of the given voltage levelstatic ContingencyBuilder
builder(String id)
static Contingency
busbarSection(String id)
Creates a new contingency on the busbar section whose id is givenstatic List<Contingency>
checkValidity(List<Contingency> contingencies, Network network)
Deprecated.UseContingencyList.getValidContingencies(List, Network)
()} instead.static Contingency
danglingLine(String id)
Creates a new contingency on the dangline line whose id is givenboolean
equals(Object obj)
static Contingency
generator(String id)
Creates a new contingency on the generator whose id is givenList<ContingencyElement>
getElements()
String
getId()
int
hashCode()
static Contingency
hvdcLine(String id)
Creates a new contingency on the hvdc line whose id is givenstatic Contingency
hvdcLine(String id, String voltageLevelId)
Creates a new contingency on the hvdc line whose id is given, on the side of the given voltage levelstatic Contingency
line(String id)
Creates a new contingency on the line whose id is givenstatic Contingency
line(String id, String voltageLevelId)
Creates a new contingency on the line whose id is given, on the side of the given voltage levelstatic Contingency
load(String loadId)
Creates a new contingency on the load whose id is givenvoid
removeElement(ContingencyElement element)
static Contingency
shuntCompensator(String id)
Creates a new contingency on the shunt compensator whose id is givenstatic Contingency
staticVarCompensator(String id)
Creates a new contingency on the static var compensator whose id is givenstatic Contingency
threeWindingsTransformer(String id)
Creates a new contingency on the three-windings transformer whose id is givenModificationTask
toTask()
static Contingency
twoWindingsTransformer(String id)
Creates a new contingency on the two-windings transformer whose id is givenstatic Contingency
twoWindingsTransformer(String id, String voltageLevelId)
Creates a new contingency on the two-windings transformer whose id is given, on the side of the given voltage level-
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)
Creates a new contingency on the branch whose id is given
-
branch
public static Contingency branch(String id, String voltageLevelId)
Creates a new contingency on the branch whose id is given, on the side of the given voltage level
-
busbarSection
public static Contingency busbarSection(String id)
Creates a new contingency on the busbar section whose id is given
-
generator
public static Contingency generator(String id)
Creates a new contingency on the generator whose id is given
-
hvdcLine
public static Contingency hvdcLine(String id)
Creates a new contingency on the hvdc line whose id is given
-
hvdcLine
public static Contingency hvdcLine(String id, String voltageLevelId)
Creates a new contingency on the hvdc line whose id is given, on the side of the given voltage level
-
line
public static Contingency line(String id)
Creates a new contingency on the line whose id is given
-
line
public static Contingency line(String id, String voltageLevelId)
Creates a new contingency on the line whose id is given, on the side of the given voltage level
-
shuntCompensator
public static Contingency shuntCompensator(String id)
Creates a new contingency on the shunt compensator whose id is given
-
staticVarCompensator
public static Contingency staticVarCompensator(String id)
Creates a new contingency on the static var compensator whose id is given
-
twoWindingsTransformer
public static Contingency twoWindingsTransformer(String id)
Creates a new contingency on the two-windings transformer whose id is given
-
twoWindingsTransformer
public static Contingency twoWindingsTransformer(String id, String voltageLevelId)
Creates a new contingency on the two-windings transformer whose id is given, on the side of the given voltage level
-
danglingLine
public static Contingency danglingLine(String id)
Creates a new contingency on the dangline line whose id is given
-
threeWindingsTransformer
public static Contingency threeWindingsTransformer(String id)
Creates a new contingency on the three-windings transformer whose id is given
-
load
public static Contingency load(String loadId)
Creates a new contingency on the load whose id is given
-
-