Class ModificationsContext<V,E>

java.lang.Object
com.powsybl.openloadflow.graph.ModificationsContext<V,E>

public class ModificationsContext<V,E> extends Object
Author:
Florian Dupuy <florian.dupuy at rte-france.com>
  • Constructor Details

    • ModificationsContext

      public ModificationsContext(Function<V,Set<V>> verticesNotInMainComponentGetter, V mainComponentVertex)
  • Method Details

    • computeVerticesNotInMainComponentBefore

      public void computeVerticesNotInMainComponentBefore()
    • add

      public void add(GraphModification<V,E> graphModification)
    • getModifications

      public Deque<GraphModification<V,E>> getModifications()
    • getEdgesRemovedFromMainComponent

      public Set<E> getEdgesRemovedFromMainComponent(org.jgrapht.Graph<V,E> graph)
    • getVerticesRemovedFromMainComponent

      public Set<V> getVerticesRemovedFromMainComponent()
    • getEdgesAddedToMainComponent

      public Set<E> getEdgesAddedToMainComponent(org.jgrapht.Graph<V,E> graph)
    • getVerticesAddedToMainComponent

      public Set<V> getVerticesAddedToMainComponent()
    • setMainComponentVertex

      public void setMainComponentVertex(V mainComponentVertex)
    • isInMainComponentBefore

      public boolean isInMainComponentBefore(V vertex)