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

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

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

Network.setCaseDate介绍

[英]Set the date that the network represents.
[中]设置网络代表的日期。

代码示例

代码示例来源:origin: com.powsybl/powsybl-iidm-xml-converter

network.setCaseDate(date);
network.setForecastDistance(forecastDistance);

代码示例来源:origin: com.powsybl/powsybl-cim1-converter

network.setCaseDate(entsoeFileName.getDate());
network.setForecastDistance(entsoeFileName.getForecastDistance());

代码示例来源:origin: com.powsybl/powsybl-cgmes-conversion

long forecastDistance = new Duration(modelCreated, modelScenarioTime).getStandardMinutes();
network.setForecastDistance(forecastDistance >= 0 ? (int) forecastDistance : 0);
network.setCaseDate(modelScenarioTime);
LOG.info("cgmes scenarioTime       : {}", modelScenarioTime);
LOG.info("cgmes modelCreated       : {}", modelCreated);

代码示例来源:origin: com.powsybl/powsybl-iidm-test

public static Network create() {
  Network network = NetworkFactory.create("test", "test");
  network.setCaseDate(DateTime.parse("2017-11-17T12:00:00+01:00"));
  Substation s = network.newSubstation()
      .setId("S")
      .setCountry(Country.FR)
      .add();
  VoltageLevel vl = s.newVoltageLevel()
      .setId("VL")
      .setTopologyKind(TopologyKind.BUS_BREAKER)
      .setNominalV(20.0f)
      .setLowVoltageLimit(15.0f)
      .setHighVoltageLimit(25.0f)
      .add();
  vl.getBusBreakerView().newBus()
      .setId("BUS")
      .add();
  Load load = vl.newLoad()
      .setId("LOAD")
      .setP0(0.0f)
      .setQ0(0.0f)
      .setBus("BUS")
      .setConnectableBus("BUS")
      .add();
  load.addExtension(LoadFooExt.class, new LoadFooExt(load));
  load.addExtension(LoadBarExt.class, new LoadBarExt(load));
  return network;
}

代码示例来源:origin: com.powsybl/powsybl-iidm-test

private static Network createBase() {
  Network network = NetworkFactory.create("hvdctest", "test");
  network.setCaseDate(DateTime.parse("2016-06-27T16:34:55.930+02:00"));
  Substation s1 = network.newSubstation()
      .setId("S1")

代码示例来源:origin: com.powsybl/powsybl-iidm-test

public static Network create() {
  Network network = NetworkFactory.create("ReactiveLimits", "???");
  network.setCaseDate(DateTime.parse("2016-01-01T10:00:00.000+02:00"));
  Substation s = network.newSubstation()
      .setId("S")

代码示例来源:origin: com.powsybl/powsybl-iidm-test

public static Network createWithCurrentLimits() {
  Network network = EurostagTutorialExample1Factory.create();
  network.setCaseDate(DateTime.parse("2018-01-01T11:00:00+01:00"));

代码示例来源:origin: com.powsybl/powsybl-iidm-test

public static Network create() {
  Network network = NetworkFactory.create("svcTestCase", "code");
  network.setCaseDate(DateTime.parse("2016-06-29T14:54:03.427+02:00"));
  Substation s1 = network.newSubstation()
      .setId("S1")

代码示例来源:origin: com.powsybl/powsybl-iidm-test

public static Network create() {
  Network network = NetworkFactory.create("three-windings-transformer", "test");
  network.setCaseDate(DateTime.parse("2018-03-05T13:30:30.486+01:00"));
  Substation substation = network.newSubstation()
    .setId("SUBSTATION")

代码示例来源:origin: com.powsybl/powsybl-iidm-test

public static Network create() {
  Network network = NetworkFactory.create("phaseShifterTestCase", "code");
  network.setCaseDate(DateTime.parse("2016-10-18T10:06:00.000+02:00"));
  Substation s1 = network.newSubstation()
      .setId("S1")

代码示例来源:origin: com.powsybl/powsybl-iidm-test

public static Network create() {
  Network network = NetworkFactory.create("fictitious", "test");
  network.setCaseDate(DateTime.parse("2017-06-25T17:43:00.000+01:00"));
  network.setForecastDistance(0);

相关文章