public abstract class AbstractConnectedComponent extends Object
Modifier | Constructor and Description |
---|---|
protected |
AbstractConnectedComponent(int num,
int size) |
Modifier and Type | Method and 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.
|
protected AbstractConnectedComponent(int num, int size)
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
protected abstract Network getNetwork()
Copyright © 2020. All rights reserved.