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
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractSynchronousComponent(int num, int size)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description Iterable<Bus>
getBuses()
Get buses in the component.protected Predicate<Bus>
getBusPredicate()
Stream<Bus>
getBusStream()
Get buses in the component.protected abstract Network
getNetwork()
int
getNum()
Get the number of the component.int
getSize()
Get the number of bus in the component.
-
-
-
Method Detail
-
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.
-
getSize
public int getSize()
Description copied from interface:Component
Get the number of bus in the component.
-
getBuses
public Iterable<Bus> getBuses()
Description copied from interface:Component
Get buses in the component.
-
getBusStream
public Stream<Bus> getBusStream()
Description copied from interface:Component
Get buses in the component.- Specified by:
getBusStream
in interfaceComponent
-
getNetwork
protected abstract Network getNetwork()
-
-