本文整理了Java中com.powsybl.iidm.network.Network.getShunt()
方法的一些代码示例,展示了Network.getShunt()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Network.getShunt()
方法的具体详情如下:
包路径:com.powsybl.iidm.network.Network
类名称:Network
方法名:getShunt
暂无
代码示例来源:origin: itesla/ipst
public EquipmentTypes equipmentType(String equipment) {
if (network.getGenerator(equipment) != null) {
return EquipmentTypes.GEN;
}
if (network.getLoad(equipment) != null) {
return EquipmentTypes.LOAD;
}
if (network.getLine(equipment) != null) {
return EquipmentTypes.LINE;
}
if (network.getTwoWindingsTransformer(equipment) != null) {
return EquipmentTypes.TWOWINDTRASF;
}
if (network.getThreeWindingsTransformer(equipment) != null) {
return EquipmentTypes.THREEWINDTRASF;
}
if (network.getVoltageLevel(equipment) != null) {
return EquipmentTypes.VOLTAGELEVEL;
}
if (network.getShunt(equipment) != null) {
return EquipmentTypes.SHUNT;
}
if (network.getSubstation(equipment) != null) {
return EquipmentTypes.SUBSTATION;
}
logger.warn(" Type not found for equipment:" + equipment + " return NULL");
return null;
}
代码示例来源:origin: itesla/ipst
nomV = generator.getTerminal().getVoltageLevel().getNominalV();
} else {
ShuntCompensator shunt = network.getShunt(attrId.getEquipmentId());
if (shunt != null) {
entityType = 4;
内容来源于网络,如有侵权,请联系作者删除!