本文整理了Java中com.powsybl.iidm.network.Load.getLoadType()
方法的一些代码示例,展示了Load.getLoadType()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Load.getLoadType()
方法的具体详情如下:
包路径:com.powsybl.iidm.network.Load
类名称:Load
方法名:getLoadType
暂无
代码示例来源:origin: itesla/ipst
@Override
public void visitLoad(Load l) {
if (l.getLoadType() != LoadType.FICTITIOUS) {
visitInjection(l);
}
}
代码示例来源:origin: itesla/ipst
public static ArrayList<String> getLoadsIds(Network network) {
Objects.requireNonNull(network, "network is null");
ArrayList<String> loadsIds = new ArrayList<String>();
for (Load load : network.getLoads()) {
if (load.getLoadType() != LoadType.FICTITIOUS) {
loadsIds.add(load.getId());
}
}
Collections.sort(loadsIds);
return loadsIds;
}
代码示例来源:origin: itesla/ipst
public static ArrayList<String> getConnectedLoadsIds(Network network) {
Objects.requireNonNull(network, "network is null");
ArrayList<String> loadsIds = new ArrayList<String>();
for (Load load : network.getLoads()) {
if (isConnected(load) && load.getLoadType() != LoadType.FICTITIOUS) {
loadsIds.add(load.getId());
}
}
Collections.sort(loadsIds);
return loadsIds;
}
代码示例来源:origin: itesla/ipst
public void load(Network network, HistoDbClient histoDbClient) throws IOException, InterruptedException {
Set<HistoDbAttributeId> attributeIds = new LinkedHashSet<>();
for (Load l : network.getLoads()) {
if (l.getLoadType() != LoadType.FICTITIOUS) {
attributeIds.add(new HistoDbNetworkAttributeId(l.getId(), HistoDbAttr.P));
}
}
for (DanglingLine dl : network.getDanglingLines()) {
attributeIds.add(new HistoDbNetworkAttributeId(dl.getId(), HistoDbAttr.P0));
}
for (Generator g : network.getGenerators()) {
attributeIds.add(new HistoDbNetworkAttributeId(g.getId(), HistoDbAttr.P));
}
HistoDbStats stats = histoDbClient.queryStats(attributeIds, histoInterval, HistoDbHorizon.SN, true);
for (Load l : network.getLoads()) {
String id = l.getId();
loadLimits.put(id, range(id, HistoDbAttr.P, stats));
}
for (DanglingLine dl : network.getDanglingLines()) {
String id = dl.getId();
danglingLineLimits.put(id, range(id, HistoDbAttr.P0, stats));
}
for (Generator g : network.getGenerators()) {
String id = g.getId();
generatorLimits.put(id, range(id, HistoDbAttr.P, stats));
}
}
代码示例来源:origin: com.powsybl/powsybl-iidm-xml-converter
@Override
protected void writeRootElementAttributes(Load l, VoltageLevel vl, NetworkXmlWriterContext context) throws XMLStreamException {
context.getWriter().writeAttribute("loadType", l.getLoadType().name());
XmlUtil.writeDouble("p0", l.getP0(), context.getWriter());
XmlUtil.writeDouble("q0", l.getQ0(), context.getWriter());
writeNodeOrBus(null, l.getTerminal(), context);
writePQ(null, l.getTerminal(), context.getWriter());
}
代码示例来源:origin: itesla/ipst
if (l.getLoadType() == LoadType.FICTITIOUS) { // skip fictitious loads
continue;
代码示例来源:origin: itesla/ipst
aux.getId(), aux.getP0(), newP0, aux.getQ0(), newQ0);
LoadType loadType = aux.getLoadType();
if (loadType != LoadType.FICTITIOUS) {
loadType = LoadType.AUXILIARY;
代码示例来源:origin: itesla/ipst
if (l.getLoadType() != LoadType.FICTITIOUS) {
LOGGER.warn("Load {} connected to high voltage bus, maybe this is an auxiliary and should be move to low level?",
l.getId());
代码示例来源:origin: itesla/ipst
for (Load l : network.getLoads()) {
if (l.getTerminal().getVoltageLevel().getNominalV() <= 100 && l.getTerminal().isConnected()) { // connected HV load
if (l.getLoadType() != LoadType.AUXILIARY) {
dumpDataLoadAutomaton(l, eurostagSim, "A14_MT", dtaOutStream, iidm2eurostagId);
} else {
内容来源于网络,如有侵权,请联系作者删除!