com.powsybl.python.network.BusBreakerViewBusData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pypowsybl Show documentation
Show all versions of pypowsybl Show documentation
A C interface to powsybl, for pypowsybl implementation
The newest version!
package com.powsybl.python.network;
import com.powsybl.iidm.network.Bus;
import java.util.Objects;
public class BusBreakerViewBusData {
private final Bus busBreakerViewBus;
private final Bus busViewBus;
public BusBreakerViewBusData(Bus busBreakerViewBus, Bus busViewBus) {
this.busBreakerViewBus = Objects.requireNonNull(busBreakerViewBus);
this.busViewBus = busViewBus;
}
public String getId() {
return busBreakerViewBus.getId();
}
public String getName() {
return busBreakerViewBus.getOptionalName().orElse("");
}
public String getBusViewBusId() {
return busViewBus != null ? busViewBus.getId() : "";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy