Class AbstractSynchronousComponent

java.lang.Object
com.powsybl.iidm.network.components.AbstractSynchronousComponent
All Implemented Interfaces:
Component
Direct Known Subclasses:
SynchronousComponent

public abstract class AbstractSynchronousComponent extends Object
Author:
Mathieu Bague <[email protected]>
  • Constructor Details

    • AbstractSynchronousComponent

      protected AbstractSynchronousComponent(int num, int size)
  • Method Details

    • getBusPredicate

      protected Predicate<Bus> getBusPredicate()
    • getNum

      public int getNum()
      Description copied from interface: Component
      Get the number of the component.

      The biggest one has the number zero and the smallest has the highest number.

      Specified by:
      getNum in interface Component
    • getSize

      public int getSize()
      Description copied from interface: Component
      Get the number of bus in the component.
      Specified by:
      getSize in interface Component
    • getBuses

      public Iterable<Bus> getBuses()
      Description copied from interface: Component
      Get buses in the component.
      Specified by:
      getBuses in interface Component
    • getBusStream

      public Stream<Bus> getBusStream()
      Description copied from interface: Component
      Get buses in the component.
      Specified by:
      getBusStream in interface Component
    • getNetwork

      protected abstract Network getNetwork()