Package com.powsybl.iidm.network
Class IdBasedBusRef
- java.lang.Object
-
- com.powsybl.iidm.network.AbstractBusRef
-
- com.powsybl.iidm.network.IdBasedBusRef
-
- All Implemented Interfaces:
BusRef
public class IdBasedBusRef extends AbstractBusRef
There would be three types of id: 1. id of equipment: 2. id of a configured bus itself: 3. id of branch, in this case, side is required- Author:
- Yichen TANG
-
-
Constructor Summary
Constructors Constructor Description IdBasedBusRef(String id)
IdBasedBusRef(String id, Branch.Side side)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getId()
Branch.Side
getSide()
int
hashCode()
protected Optional<Bus>
resolveByLevel(Network network, TopologyLevel level)
-
Methods inherited from class com.powsybl.iidm.network.AbstractBusRef
chooseBusByLevel, resolve
-
-
-
-
Constructor Detail
-
IdBasedBusRef
public IdBasedBusRef(String id)
-
IdBasedBusRef
public IdBasedBusRef(String id, Branch.Side side)
-
-
Method Detail
-
resolveByLevel
protected Optional<Bus> resolveByLevel(Network network, TopologyLevel level)
- Specified by:
resolveByLevel
in classAbstractBusRef
-
getId
public String getId()
-
getSide
public Branch.Side getSide()
-
-