public class ConnectedComponent extends AbstractConnectedComponent
Constructor and Description |
---|
ConnectedComponent(Network network,
int num,
int size) |
Modifier and Type | Method and Description |
---|---|
Iterable<Bus> |
getBuses()
Get buses in the component.
|
Stream<Bus> |
getBusStream()
Get buses in the component.
|
Network |
getNetwork() |
int |
getNum()
Get the number of the component.
|
int |
getSize()
Get the number of bus in the component.
|
getBusPredicate
public ConnectedComponent(Network network, int num, int size)
public Network getNetwork()
public int getNum()
Component
The biggest one has the number zero and the smallest has the highest number.
public int getSize()
Component
public Iterable<Bus> getBuses()
Component
public Stream<Bus> getBusStream()
Component
getBusStream
in interface Component
Copyright © 2020. All rights reserved.