com.powsybl.iidm.network.Network.getName()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(4.7k)|赞(0)|评价(0)|浏览(146)

本文整理了Java中com.powsybl.iidm.network.Network.getName()方法的一些代码示例,展示了Network.getName()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Network.getName()方法的具体详情如下:
包路径:com.powsybl.iidm.network.Network
类名称:Network
方法名:getName

Network.getName介绍

暂无

代码示例

代码示例来源:origin: itesla/ipst

export.WriteMo(outputParentDir.resolve(_network.getName()).toAbsolutePath().toString(), _modelicaVersion);
LOGGER.info("Writer time = " + (System.currentTimeMillis() - preWrite));
ctx.close();

代码示例来源:origin: itesla/ipst

cmd = createCommand(DymolaUtil.DYMOLAINPUTZIPFILENAMEPREFIX, network.getName(), DymolaSimulationConfig.load());
return cmd;

代码示例来源:origin: itesla/ipst

context.getOutputStream().println("- Network name: " + network.getName());

代码示例来源:origin: itesla/ipst

text = "New";
filename = network.getName() + "_"  + text;

代码示例来源:origin: itesla/ipst

public Double getP(String equipment) {
  logger.debug("  network " + network.getName()  + " equipment: " + equipment);
  Double returnValue = null;
  EquipmentTypes     eqType = equipmentType(equipment);
  if (eqType != null) {
    switch (eqType) {
      case GEN:
        logger.debug("  equipment == generator");
        returnValue = network.getGenerator(equipment).getTerminal().getP();
        break;
      case LOAD:
        logger.debug("  equipment == load");
        returnValue = network.getLoad(equipment).getP0();
        break;
      case LINE:
        logger.debug(" equipment == line");
        if (network.getLine(equipment).getTerminal1() != null) {
          returnValue = network.getLine(equipment).getTerminal1().getP();
        }
        if (network.getLine(equipment).getTerminal2() != null) {
          returnValue = network.getLine(equipment).getTerminal2().getP();
        }
        break;
    }
  }
  if (returnValue != null) {
    logger.debug(" RETURN P: " + returnValue + " for Network: " + network.getName() + " Equipment: " + equipment);
  }
  return returnValue;
}

代码示例来源:origin: itesla/ipst

public Double getQ(String equipment) {
  logger.debug("  network " + network.getName() + " equipment: " + equipment);
  Double returnValue = null;
  EquipmentTypes     eqType = equipmentType(equipment);
  if (eqType != null) {
    switch (eqType) {
      case GEN:
        logger.debug(" equipment == generator");
        returnValue = network.getGenerator(equipment).getTerminal().getQ();
        break;
      case LOAD:
        logger.debug("  equipment == load");
        returnValue = network.getLoad(equipment).getQ0();
        break;
      case LINE:
        logger.debug("  equipment == line");
        if (network.getLine(equipment).getTerminal1() != null) {
          returnValue = network.getLine(equipment).getTerminal1().getQ();
        }
        if (network.getLine(equipment).getTerminal2() != null) {
          returnValue = network.getLine(equipment).getTerminal2().getQ();
        }
        break;
    }
  }
  if (returnValue != null) {
    logger.debug(" RETURN Q: " + returnValue + " for Network: " + network.getName() + " Equipment: " + equipment);
  }
  return  returnValue;
}

代码示例来源:origin: itesla/ipst

private void runFEA(TimeHorizon[] timeHorizons) {
  logger.info("Forecast errors analysis, started.");
  Network network = MergeUtil.merge(caseRepository, parameters.getBaseCaseDate(), parameters.getCaseType(), parameters.getCountries(),
                   loadFlowFactory, 0, mergeOptimizerFactory, computationManager, false);
  logger.info("- Network id: " + network.getId());
  logger.info("- Network name: " + network.getName());
  ForecastErrorsAnalyzer feAnalyzer = forecastErrorsAnalyzerFactory.create(network, computationManager, feDataStorage, histoDbClient);
  feAnalyzer.init(new ForecastErrorsAnalyzerParameters(
      parameters.getHistoInterval(), parameters.getFeAnalysisId(),
      parameters.getIr(), parameters.getFlagPQ(), parameters.getMethod(),
      parameters.getnClusters(), parameters.getPercentileHistorical(),
      parameters.getModalityGaussian(), parameters.getOutliers(),
      parameters.getConditionalSampling(), parameters.getnSamples(),
      parameters.isAllInjections()));
  // sequential analysis of the different time horizons
  // it could/should be parallelized
  for (TimeHorizon timeHorizon : timeHorizons) {
    try {
      logger.info("Performing forecast error analysis on {} time horizon for {} network", timeHorizon.getName(), network.getId());
      feAnalyzer.run(timeHorizon);
    } catch (Exception e) {
      logger.error("Error analysing {} time horizon for {} network: {}", timeHorizon.getName(), network.getId(), e.getMessage());
    }
  }
  logger.info("Forecast errors analysis, terminated.");
}

代码示例来源:origin: itesla/ipst

logger.debug(" RETURN tsos: " + tsos.toString() + " for Network: " + network.getName()  + " Equipment: " + equipment);

代码示例来源:origin: itesla/ipst

HeaderRecord headerRecord = new HeaderRecord(_network.getName(), globalVars);
this.addRecord(headerRecord, writerMo, modContext, _ddbManager, modelicaSim);
FooterRecord footerRecord = new FooterRecord(_network.getName());
this.addRecord(footerRecord, writerMo, modContext, _ddbManager, modelicaSim);

代码示例来源:origin: itesla/ipst

logger.info(this.logHeader + "- Network name: " + network.getName());

相关文章