Class Contingency

All Implemented Interfaces:
Extendable<Contingency>

public class Contingency extends AbstractExtendable<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 Details

  • Method Details

    • getId

      public String getId()
    • getElements

      public List<ContingencyElement> getElements()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getName

      public Optional<String> getName()
    • addElement

      public void addElement(ContingencyElement element)
    • removeElement

      public void removeElement(ContingencyElement element)
    • toModification

      public NetworkModification toModification()
    • isValid

      public boolean isValid(Network network)
    • checkValidity

      @Deprecated(since="4.0.0") public static List<Contingency> checkValidity(List<Contingency> contingencies, Network network)
      Return a list of valid contingencies.
    • builder

      public static ContingencyBuilder builder(String id)
    • battery

      public static Contingency battery(String id)
      Creates a new contingency on the battery whose id is given
    • 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
    • tieLine

      public static Contingency tieLine(String id)
      Creates a new contingency on the tie line whose id is given
    • tieLine

      public static Contingency tieLine(String id, String voltageLevelId)
      Creates a new contingency on the tie 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
    • bus

      public static Contingency bus(String busId)
      Creates a new contingency on the bus whose id is given