AmplNetworkReader { public AmplNetworkReader readHvdcLines() throws IOException { read("_hvdc", 4, this::readHvdcLine); return this; } AmplNetworkReader(ReadOnlyDataSource dataSource, Network network, int variantIndex, StringToIntMapper<AmplSubset> mapper);  AmplNetworkReader(ReadOnlyDataSource dataSource, Network network, StringToIntMapper<AmplSubset> mapper); AmplNetworkReader readGenerators(); AmplNetworkReader readBatteries(); AmplNetworkReader readLoads(); AmplNetworkReader readRatioTapChangers(); AmplNetworkReader readPhaseTapChangers(); AmplNetworkReader readShunts(); AmplNetworkReader readBuses(); AmplNetworkReader readBranches(); AmplNetworkReader readHvdcLines(); AmplNetworkReader readStaticVarcompensator(); AmplNetworkReader readLccConverterStations(); AmplNetworkReader readVscConverterStations(); AmplNetworkReader readMetrics(Map<String, String> metrics);  }
@Test public void readHvdcLines() throws IOException { Network network = HvdcTestNetwork.createLcc(); StringToIntMapper<AmplSubset> mapper = AmplUtil.createMapper(network); ReadOnlyDataSource dataSource = new ResourceDataSource("lcc-test", new ResourceSet("/outputs/", "lcc-test_hvdc.txt", "lcc-test_shunts.txt", "lcc-test_lcc_converter_stations.txt")); AmplNetworkReader reader = new AmplNetworkReader(dataSource, network, mapper); testHvdc(network, reader); testShunts(network, reader); testLcc(network, reader); Network network2 = HvdcTestNetwork.createVsc(); StringToIntMapper<AmplSubset> mapper2 = AmplUtil.createMapper(network2); ReadOnlyDataSource dataSource2 = new ResourceDataSource("vsc-test", new ResourceSet("/outputs/", "vsc-test_vsc_converter_stations.txt")); AmplNetworkReader reader2 = new AmplNetworkReader(dataSource2, network2, mapper2); testVsc(network2, reader2); }