Package com.powsybl.contingency
Class Contingency
- All Implemented Interfaces:
Extendable<Contingency>
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>, Teofil Calin BANC <teofil-calin.banc at rte-france.com>, Mathieu Bague <mathieu.bague at rte-france.com>
-
Constructor Summary
ConstructorDescriptionContingency
(String id, ContingencyElement... elements) Contingency
(String id, String name, ContingencyElement... elements) Contingency
(String id, String name, List<ContingencyElement> elements) Contingency
(String id, List<ContingencyElement> elements) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addElement
(ContingencyElement element) static Contingency
Creates a new contingency on the battery whose id is givenstatic Contingency
Creates a new contingency on the branch whose id is givenstatic Contingency
Creates a new contingency on the branch whose id is given, on the side of the given voltage levelstatic ContingencyBuilder
static Contingency
Creates a new contingency on the bus whose id is givenstatic 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.static Contingency
danglingLine
(String id) Creates a new contingency on the dangline line whose id is givenboolean
static Contingency
Creates a new contingency on the generator whose id is givengetId()
getName()
int
hashCode()
static Contingency
Creates a new contingency on the hvdc line whose id is givenstatic Contingency
Creates a new contingency on the hvdc line whose id is given, on the side of the given voltage levelboolean
static Contingency
Creates a new contingency on the line whose id is givenstatic Contingency
Creates a new contingency on the line whose id is given, on the side of the given voltage levelstatic Contingency
Creates a new contingency on the load whose id is givenvoid
removeElement
(ContingencyElement element) static Contingency
Creates a new contingency on the shunt compensator whose id is givenstatic Contingency
Creates a new contingency on the static var compensator whose id is givenstatic Contingency
Creates a new contingency on the three-windings transformer whose id is givenstatic Contingency
Creates a new contingency on the tie line whose id is givenstatic Contingency
Creates a new contingency on the tie line whose id is given, on the side of the given voltage levelstatic Contingency
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 levelMethods inherited from class com.powsybl.commons.extensions.AbstractExtendable
addExtension, getExtension, getExtensionByName, getExtensions, getImplementationName, removeExtension, 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 Details
-
Contingency
-
Contingency
-
Contingency
-
Contingency
-
-
Method Details
-
getId
-
getElements
-
hashCode
public int hashCode() -
equals
-
getName
-
addElement
-
removeElement
-
toModification
-
isValid
-
checkValidity
@Deprecated(since="4.0.0") public static List<Contingency> checkValidity(List<Contingency> contingencies, Network network) Deprecated.UseContingencyList.getValidContingencies(List, Network)
()} instead.Return a list of valid contingencies. -
builder
-
battery
Creates a new contingency on the battery whose id is given -
branch
Creates a new contingency on the branch whose id is given -
branch
Creates a new contingency on the branch whose id is given, on the side of the given voltage level -
busbarSection
Creates a new contingency on the busbar section whose id is given -
generator
Creates a new contingency on the generator whose id is given -
hvdcLine
Creates a new contingency on the hvdc line whose id is given -
hvdcLine
Creates a new contingency on the hvdc line whose id is given, on the side of the given voltage level -
line
Creates a new contingency on the line whose id is given -
line
Creates a new contingency on the line whose id is given, on the side of the given voltage level -
tieLine
Creates a new contingency on the tie line whose id is given -
tieLine
Creates a new contingency on the tie line whose id is given, on the side of the given voltage level -
shuntCompensator
Creates a new contingency on the shunt compensator whose id is given -
staticVarCompensator
Creates a new contingency on the static var compensator whose id is given -
twoWindingsTransformer
Creates a new contingency on the two-windings transformer whose id is given -
twoWindingsTransformer
Creates a new contingency on the two-windings transformer whose id is given, on the side of the given voltage level -
danglingLine
Creates a new contingency on the dangline line whose id is given -
threeWindingsTransformer
Creates a new contingency on the three-windings transformer whose id is given -
load
Creates a new contingency on the load whose id is given -
bus
Creates a new contingency on the bus whose id is given
-
ContingencyList.getValidContingencies(List, Network)
()} instead.