From 73b73592258ed084ebdb2bd797fb08323c78dccb Mon Sep 17 00:00:00 2001 From: Ricardo Ewert Date: Mon, 22 Jan 2024 11:42:34 +0100 Subject: [PATCH] moved small scale commercial generation to new contrib --- .../config_demand.xml | 552 ------------------ ...ateDifferentPlansForFreightPopulation.java | 0 ...rateSmallScaleCommercialTrafficDemand.java | 0 .../LanduseBuildingAnalysis.java | 0 .../SmallScaleCommercialTrafficUtils.java | 0 .../TrafficVolumeGeneration.java | 0 .../TripDistributionMatrix.java | 0 .../ValueSelectorUnderGivenProbability.java | 0 .../LanduseBuildingAnalysisTest.java | 10 +- ...nerateSmallScaleCommercialTrafficTest.java | 0 .../SCTUtils.java | 0 .../SmallScaleCommercialTrafficUtilsTest.java | 3 - .../TrafficVolumeGenerationTest.java | 14 +- .../TripDistributionMatrixTest.java | 0 .../config_demand.xml | 53 ++ .../dataDistributionPerZone.csv | 0 .../output_carriers.xml.gz | Bin .../exampleServiceCarrier/vehicleTypes.xml.gz | Bin .../output_carriers.xml.gz | Bin .../vehicleTypes.xml.gz | Bin .../existingModels/existingModels.csv | 0 .../investigationAreaData.csv | 0 .../shp/testBuildings.cpg | 0 .../shp/testBuildings.dbf | Bin .../shp/testBuildings.prj | 0 .../shp/testBuildings.qmd | 0 .../shp/testBuildings.shp | Bin .../shp/testBuildings.shx | Bin .../shp/testLanduse.cpg | 0 .../shp/testLanduse.dbf | Bin .../shp/testLanduse.prj | 0 .../shp/testLanduse.qmd | 0 .../shp/testLanduse.shp | Bin .../shp/testLanduse.shx | Bin .../shp/testZones.cpg | 0 .../shp/testZones.dbf | Bin .../shp/testZones.prj | 0 .../shp/testZones.qmd | 0 .../shp/testZones.shp | Bin .../shp/testZones.shx | Bin .../vehicleTypes.xml | 0 41 files changed, 63 insertions(+), 569 deletions(-) delete mode 100644 contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/config_demand.xml rename contribs/{application => small-scale-traffic-generation}/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/CreateDifferentPlansForFreightPopulation.java (100%) rename contribs/{application => small-scale-traffic-generation}/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/GenerateSmallScaleCommercialTrafficDemand.java (100%) rename contribs/{application => small-scale-traffic-generation}/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/LanduseBuildingAnalysis.java (100%) rename contribs/{application => small-scale-traffic-generation}/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/SmallScaleCommercialTrafficUtils.java (100%) rename contribs/{application => small-scale-traffic-generation}/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/TrafficVolumeGeneration.java (100%) rename contribs/{application => small-scale-traffic-generation}/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/TripDistributionMatrix.java (100%) rename contribs/{application => small-scale-traffic-generation}/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/ValueSelectorUnderGivenProbability.java (100%) rename contribs/{application => small-scale-traffic-generation}/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/LanduseBuildingAnalysisTest.java (97%) rename contribs/{application => small-scale-traffic-generation}/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/RunGenerateSmallScaleCommercialTrafficTest.java (100%) rename contribs/{application => small-scale-traffic-generation}/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/SCTUtils.java (100%) rename contribs/{application => small-scale-traffic-generation}/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/SmallScaleCommercialTrafficUtilsTest.java (97%) rename contribs/{application => small-scale-traffic-generation}/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/TrafficVolumeGenerationTest.java (98%) rename contribs/{application => small-scale-traffic-generation}/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/TripDistributionMatrixTest.java (100%) create mode 100644 contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/config_demand.xml rename contribs/{application => small-scale-traffic-generation}/test/input/org/matsim/smallScaleCommercialTrafficGeneration/dataDistributionPerZone.csv (100%) rename contribs/{application => small-scale-traffic-generation}/test/input/org/matsim/smallScaleCommercialTrafficGeneration/existingModels/exampleServiceCarrier/output_carriers.xml.gz (100%) rename contribs/{application => small-scale-traffic-generation}/test/input/org/matsim/smallScaleCommercialTrafficGeneration/existingModels/exampleServiceCarrier/vehicleTypes.xml.gz (100%) rename contribs/{application => small-scale-traffic-generation}/test/input/org/matsim/smallScaleCommercialTrafficGeneration/existingModels/exampleShipmentCarrier/output_carriers.xml.gz (100%) rename contribs/{application => small-scale-traffic-generation}/test/input/org/matsim/smallScaleCommercialTrafficGeneration/existingModels/exampleShipmentCarrier/vehicleTypes.xml.gz (100%) rename contribs/{application => small-scale-traffic-generation}/test/input/org/matsim/smallScaleCommercialTrafficGeneration/existingModels/existingModels.csv (100%) rename contribs/{application => small-scale-traffic-generation}/test/input/org/matsim/smallScaleCommercialTrafficGeneration/investigationAreaData.csv (100%) rename contribs/{application => small-scale-traffic-generation}/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testBuildings.cpg (100%) rename contribs/{application => small-scale-traffic-generation}/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testBuildings.dbf (100%) rename contribs/{application => small-scale-traffic-generation}/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testBuildings.prj (100%) rename contribs/{application => small-scale-traffic-generation}/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testBuildings.qmd (100%) rename contribs/{application => small-scale-traffic-generation}/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testBuildings.shp (100%) rename contribs/{application => small-scale-traffic-generation}/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testBuildings.shx (100%) rename contribs/{application => small-scale-traffic-generation}/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testLanduse.cpg (100%) rename contribs/{application => small-scale-traffic-generation}/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testLanduse.dbf (100%) rename contribs/{application => small-scale-traffic-generation}/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testLanduse.prj (100%) rename contribs/{application => small-scale-traffic-generation}/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testLanduse.qmd (100%) rename contribs/{application => small-scale-traffic-generation}/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testLanduse.shp (100%) rename contribs/{application => small-scale-traffic-generation}/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testLanduse.shx (100%) rename contribs/{application => small-scale-traffic-generation}/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testZones.cpg (100%) rename contribs/{application => small-scale-traffic-generation}/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testZones.dbf (100%) rename contribs/{application => small-scale-traffic-generation}/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testZones.prj (100%) rename contribs/{application => small-scale-traffic-generation}/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testZones.qmd (100%) rename contribs/{application => small-scale-traffic-generation}/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testZones.shp (100%) rename contribs/{application => small-scale-traffic-generation}/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testZones.shx (100%) rename contribs/{application => small-scale-traffic-generation}/test/input/org/matsim/smallScaleCommercialTrafficGeneration/vehicleTypes.xml (100%) diff --git a/contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/config_demand.xml b/contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/config_demand.xml deleted file mode 100644 index bc64ce1501a..00000000000 --- a/contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/config_demand.xml +++ /dev/null @@ -1,552 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/contribs/application/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/CreateDifferentPlansForFreightPopulation.java b/contribs/small-scale-traffic-generation/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/CreateDifferentPlansForFreightPopulation.java similarity index 100% rename from contribs/application/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/CreateDifferentPlansForFreightPopulation.java rename to contribs/small-scale-traffic-generation/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/CreateDifferentPlansForFreightPopulation.java diff --git a/contribs/application/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/GenerateSmallScaleCommercialTrafficDemand.java b/contribs/small-scale-traffic-generation/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/GenerateSmallScaleCommercialTrafficDemand.java similarity index 100% rename from contribs/application/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/GenerateSmallScaleCommercialTrafficDemand.java rename to contribs/small-scale-traffic-generation/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/GenerateSmallScaleCommercialTrafficDemand.java diff --git a/contribs/application/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/LanduseBuildingAnalysis.java b/contribs/small-scale-traffic-generation/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/LanduseBuildingAnalysis.java similarity index 100% rename from contribs/application/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/LanduseBuildingAnalysis.java rename to contribs/small-scale-traffic-generation/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/LanduseBuildingAnalysis.java diff --git a/contribs/application/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/SmallScaleCommercialTrafficUtils.java b/contribs/small-scale-traffic-generation/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/SmallScaleCommercialTrafficUtils.java similarity index 100% rename from contribs/application/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/SmallScaleCommercialTrafficUtils.java rename to contribs/small-scale-traffic-generation/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/SmallScaleCommercialTrafficUtils.java diff --git a/contribs/application/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/TrafficVolumeGeneration.java b/contribs/small-scale-traffic-generation/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/TrafficVolumeGeneration.java similarity index 100% rename from contribs/application/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/TrafficVolumeGeneration.java rename to contribs/small-scale-traffic-generation/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/TrafficVolumeGeneration.java diff --git a/contribs/application/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/TripDistributionMatrix.java b/contribs/small-scale-traffic-generation/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/TripDistributionMatrix.java similarity index 100% rename from contribs/application/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/TripDistributionMatrix.java rename to contribs/small-scale-traffic-generation/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/TripDistributionMatrix.java diff --git a/contribs/application/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/ValueSelectorUnderGivenProbability.java b/contribs/small-scale-traffic-generation/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/ValueSelectorUnderGivenProbability.java similarity index 100% rename from contribs/application/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/ValueSelectorUnderGivenProbability.java rename to contribs/small-scale-traffic-generation/src/main/java/org/matsim/smallScaleCommercialTrafficGeneration/ValueSelectorUnderGivenProbability.java diff --git a/contribs/application/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/LanduseBuildingAnalysisTest.java b/contribs/small-scale-traffic-generation/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/LanduseBuildingAnalysisTest.java similarity index 97% rename from contribs/application/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/LanduseBuildingAnalysisTest.java rename to contribs/small-scale-traffic-generation/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/LanduseBuildingAnalysisTest.java index 6d562e6fbf1..be97112e74c 100644 --- a/contribs/application/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/LanduseBuildingAnalysisTest.java +++ b/contribs/small-scale-traffic-generation/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/LanduseBuildingAnalysisTest.java @@ -33,8 +33,6 @@ import java.util.List; import java.util.Map; -import static org.matsim.smallScaleCommercialTrafficGeneration.SCTUtils.*; - /** * @author Ricardo Ewert * @@ -58,7 +56,7 @@ void testReadOfDataDistributionPerZoneAndBuildingAnalysis() throws IOException { Map> resultingDataPerZone = LanduseBuildingAnalysis .createInputDataDistribution(output, landuseCategoriesAndDataConnection, inputDataDirectory, usedLanduseConfiguration, - getIndexLanduse(inputDataDirectory), getZoneIndex(inputDataDirectory), getIndexBuildings(inputDataDirectory), buildingsPerZone); + SCTUtils.getIndexLanduse(inputDataDirectory), SCTUtils.getZoneIndex(inputDataDirectory), SCTUtils.getIndexBuildings(inputDataDirectory), buildingsPerZone); Assertions.assertEquals(3, resultingDataPerZone.size(), MatsimTestUtils.EPSILON); @@ -145,10 +143,10 @@ void testReadOfDataDistributionPerZoneAndBuildingAnalysis() throws IOException { } // tests if the reading of the buildings works correctly - List buildingsFeatures = getIndexBuildings(inputDataDirectory).getAllFeatures(); + List buildingsFeatures = SCTUtils.getIndexBuildings(inputDataDirectory).getAllFeatures(); Assertions.assertEquals(31, buildingsFeatures.size(), MatsimTestUtils.EPSILON); LanduseBuildingAnalysis.analyzeBuildingType(buildingsFeatures, buildingsPerZone, - landuseCategoriesAndDataConnection, getIndexLanduse(inputDataDirectory), getZoneIndex(inputDataDirectory)); + landuseCategoriesAndDataConnection, SCTUtils.getIndexLanduse(inputDataDirectory), SCTUtils.getZoneIndex(inputDataDirectory)); Assertions.assertEquals(3, buildingsPerZone.size(), MatsimTestUtils.EPSILON); Assertions.assertTrue(buildingsPerZone.containsKey("testArea1_area1")); @@ -245,7 +243,7 @@ void testLanduseDistribution() throws IOException { Map> resultingDataPerZone = LanduseBuildingAnalysis .createInputDataDistribution(output, landuseCategoriesAndDataConnection, inputDataDirectory, usedLanduseConfiguration, - getIndexLanduse(inputDataDirectory), getZoneIndex(inputDataDirectory), getIndexBuildings(inputDataDirectory), buildingsPerZone); + SCTUtils.getIndexLanduse(inputDataDirectory), SCTUtils.getZoneIndex(inputDataDirectory), SCTUtils.getIndexBuildings(inputDataDirectory), buildingsPerZone); Assertions.assertEquals(3, resultingDataPerZone.size(), MatsimTestUtils.EPSILON); diff --git a/contribs/application/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/RunGenerateSmallScaleCommercialTrafficTest.java b/contribs/small-scale-traffic-generation/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/RunGenerateSmallScaleCommercialTrafficTest.java similarity index 100% rename from contribs/application/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/RunGenerateSmallScaleCommercialTrafficTest.java rename to contribs/small-scale-traffic-generation/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/RunGenerateSmallScaleCommercialTrafficTest.java diff --git a/contribs/application/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/SCTUtils.java b/contribs/small-scale-traffic-generation/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/SCTUtils.java similarity index 100% rename from contribs/application/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/SCTUtils.java rename to contribs/small-scale-traffic-generation/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/SCTUtils.java diff --git a/contribs/application/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/SmallScaleCommercialTrafficUtilsTest.java b/contribs/small-scale-traffic-generation/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/SmallScaleCommercialTrafficUtilsTest.java similarity index 97% rename from contribs/application/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/SmallScaleCommercialTrafficUtilsTest.java rename to contribs/small-scale-traffic-generation/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/SmallScaleCommercialTrafficUtilsTest.java index 3aedc210cde..61d3f759aac 100644 --- a/contribs/application/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/SmallScaleCommercialTrafficUtilsTest.java +++ b/contribs/small-scale-traffic-generation/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/SmallScaleCommercialTrafficUtilsTest.java @@ -25,7 +25,6 @@ import org.matsim.api.core.v01.Id; import org.matsim.api.core.v01.Scenario; import org.matsim.api.core.v01.network.Link; -import org.matsim.application.options.ShpOptions; import org.matsim.core.config.Config; import org.matsim.core.config.ConfigUtils; import org.matsim.core.scenario.ScenarioUtils; @@ -34,9 +33,7 @@ import java.io.IOException; import java.net.URISyntaxException; -import java.nio.charset.StandardCharsets; import java.nio.file.Path; -import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; diff --git a/contribs/application/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/TrafficVolumeGenerationTest.java b/contribs/small-scale-traffic-generation/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/TrafficVolumeGenerationTest.java similarity index 98% rename from contribs/application/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/TrafficVolumeGenerationTest.java rename to contribs/small-scale-traffic-generation/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/TrafficVolumeGenerationTest.java index ef979568774..b1646548777 100644 --- a/contribs/application/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/TrafficVolumeGenerationTest.java +++ b/contribs/small-scale-traffic-generation/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/TrafficVolumeGenerationTest.java @@ -41,8 +41,6 @@ import java.nio.file.Path; import java.util.*; -import static org.matsim.smallScaleCommercialTrafficGeneration.SCTUtils.*; - /** * @author Ricardo Ewert * @@ -66,7 +64,7 @@ void testTrafficVolumeGenerationCommercialPersonTraffic() throws IOException { Map> resultingDataPerZone = LanduseBuildingAnalysis .createInputDataDistribution(output, landuseCategoriesAndDataConnection, inputDataDirectory, usedLanduseConfiguration, - getIndexLanduse(inputDataDirectory), getZoneIndex(inputDataDirectory), getIndexBuildings(inputDataDirectory), buildingsPerZone); + SCTUtils.getIndexLanduse(inputDataDirectory), SCTUtils.getZoneIndex(inputDataDirectory), SCTUtils.getIndexBuildings(inputDataDirectory), buildingsPerZone); String usedTrafficType = "commercialPersonTraffic"; @@ -192,7 +190,7 @@ void testTrafficVolumeGenerationGoodsTraffic() throws IOException { Map> resultingDataPerZone = LanduseBuildingAnalysis .createInputDataDistribution(output, landuseCategoriesAndDataConnection, inputDataDirectory, usedLanduseConfiguration, - getIndexLanduse(inputDataDirectory), getZoneIndex(inputDataDirectory), getIndexBuildings(inputDataDirectory), buildingsPerZone); + SCTUtils.getIndexLanduse(inputDataDirectory), SCTUtils.getZoneIndex(inputDataDirectory), SCTUtils.getIndexBuildings(inputDataDirectory), buildingsPerZone); String usedTrafficType = "goodsTraffic"; double sample = 1.; @@ -517,7 +515,7 @@ void testReducingDemandAfterAddingExistingScenarios_goods() throws Exception { Map> resultingDataPerZone = LanduseBuildingAnalysis .createInputDataDistribution(output, landuseCategoriesAndDataConnection, inputDataDirectory, usedLanduseConfiguration, - getIndexLanduse(inputDataDirectory), getZoneIndex(inputDataDirectory), getIndexBuildings(inputDataDirectory), buildingsPerZone); + SCTUtils.getIndexLanduse(inputDataDirectory), SCTUtils.getZoneIndex(inputDataDirectory), SCTUtils.getIndexBuildings(inputDataDirectory), buildingsPerZone); Map> trafficVolumePerTypeAndZone_start = TrafficVolumeGeneration .createTrafficVolume_start(resultingDataPerZone, output, sample, modesORvehTypes, usedTrafficType); @@ -525,7 +523,7 @@ void testReducingDemandAfterAddingExistingScenarios_goods() throws Exception { .createTrafficVolume_stop(resultingDataPerZone, output, sample, modesORvehTypes, usedTrafficType); Map, Link>> regionLinksMap = GenerateSmallScaleCommercialTrafficDemand - .filterLinksForZones(scenario, getZoneIndex(inputDataDirectory), buildingsPerZone); + .filterLinksForZones(scenario, SCTUtils.getZoneIndex(inputDataDirectory), buildingsPerZone); SmallScaleCommercialTrafficUtils.readExistingModels(scenario, sample, regionLinksMap); @@ -672,7 +670,7 @@ void testReducingDemandAfterAddingExistingScenarios_commercialPersonTraffic() th Map> resultingDataPerZone = LanduseBuildingAnalysis .createInputDataDistribution(output, landuseCategoriesAndDataConnection, inputDataDirectory, usedLanduseConfiguration, - getIndexLanduse(inputDataDirectory), getZoneIndex(inputDataDirectory), getIndexBuildings(inputDataDirectory), buildingsPerZone); + SCTUtils.getIndexLanduse(inputDataDirectory), SCTUtils.getZoneIndex(inputDataDirectory), SCTUtils.getIndexBuildings(inputDataDirectory), buildingsPerZone); Map> trafficVolumePerTypeAndZone_start = TrafficVolumeGeneration .createTrafficVolume_start(resultingDataPerZone, output, sample, modesORvehTypes, usedTrafficType); @@ -680,7 +678,7 @@ void testReducingDemandAfterAddingExistingScenarios_commercialPersonTraffic() th .createTrafficVolume_stop(resultingDataPerZone, output, sample, modesORvehTypes, usedTrafficType); Map, Link>> regionLinksMap = GenerateSmallScaleCommercialTrafficDemand - .filterLinksForZones(scenario, getZoneIndex(inputDataDirectory), buildingsPerZone); + .filterLinksForZones(scenario, SCTUtils.getZoneIndex(inputDataDirectory), buildingsPerZone); SmallScaleCommercialTrafficUtils.readExistingModels(scenario, sample, regionLinksMap); diff --git a/contribs/application/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/TripDistributionMatrixTest.java b/contribs/small-scale-traffic-generation/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/TripDistributionMatrixTest.java similarity index 100% rename from contribs/application/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/TripDistributionMatrixTest.java rename to contribs/small-scale-traffic-generation/src/test/java/org/matsim/smallScaleCommercialTrafficGeneration/TripDistributionMatrixTest.java diff --git a/contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/config_demand.xml b/contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/config_demand.xml new file mode 100644 index 00000000000..ef77da93664 --- /dev/null +++ b/contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/config_demand.xml @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/dataDistributionPerZone.csv b/contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/dataDistributionPerZone.csv similarity index 100% rename from contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/dataDistributionPerZone.csv rename to contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/dataDistributionPerZone.csv diff --git a/contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/existingModels/exampleServiceCarrier/output_carriers.xml.gz b/contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/existingModels/exampleServiceCarrier/output_carriers.xml.gz similarity index 100% rename from contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/existingModels/exampleServiceCarrier/output_carriers.xml.gz rename to contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/existingModels/exampleServiceCarrier/output_carriers.xml.gz diff --git a/contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/existingModels/exampleServiceCarrier/vehicleTypes.xml.gz b/contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/existingModels/exampleServiceCarrier/vehicleTypes.xml.gz similarity index 100% rename from contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/existingModels/exampleServiceCarrier/vehicleTypes.xml.gz rename to contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/existingModels/exampleServiceCarrier/vehicleTypes.xml.gz diff --git a/contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/existingModels/exampleShipmentCarrier/output_carriers.xml.gz b/contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/existingModels/exampleShipmentCarrier/output_carriers.xml.gz similarity index 100% rename from contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/existingModels/exampleShipmentCarrier/output_carriers.xml.gz rename to contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/existingModels/exampleShipmentCarrier/output_carriers.xml.gz diff --git a/contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/existingModels/exampleShipmentCarrier/vehicleTypes.xml.gz b/contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/existingModels/exampleShipmentCarrier/vehicleTypes.xml.gz similarity index 100% rename from contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/existingModels/exampleShipmentCarrier/vehicleTypes.xml.gz rename to contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/existingModels/exampleShipmentCarrier/vehicleTypes.xml.gz diff --git a/contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/existingModels/existingModels.csv b/contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/existingModels/existingModels.csv similarity index 100% rename from contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/existingModels/existingModels.csv rename to contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/existingModels/existingModels.csv diff --git a/contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/investigationAreaData.csv b/contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/investigationAreaData.csv similarity index 100% rename from contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/investigationAreaData.csv rename to contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/investigationAreaData.csv diff --git a/contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testBuildings.cpg b/contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testBuildings.cpg similarity index 100% rename from contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testBuildings.cpg rename to contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testBuildings.cpg diff --git a/contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testBuildings.dbf b/contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testBuildings.dbf similarity index 100% rename from contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testBuildings.dbf rename to contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testBuildings.dbf diff --git a/contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testBuildings.prj b/contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testBuildings.prj similarity index 100% rename from contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testBuildings.prj rename to contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testBuildings.prj diff --git a/contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testBuildings.qmd b/contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testBuildings.qmd similarity index 100% rename from contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testBuildings.qmd rename to contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testBuildings.qmd diff --git a/contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testBuildings.shp b/contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testBuildings.shp similarity index 100% rename from contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testBuildings.shp rename to contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testBuildings.shp diff --git a/contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testBuildings.shx b/contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testBuildings.shx similarity index 100% rename from contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testBuildings.shx rename to contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testBuildings.shx diff --git a/contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testLanduse.cpg b/contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testLanduse.cpg similarity index 100% rename from contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testLanduse.cpg rename to contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testLanduse.cpg diff --git a/contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testLanduse.dbf b/contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testLanduse.dbf similarity index 100% rename from contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testLanduse.dbf rename to contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testLanduse.dbf diff --git a/contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testLanduse.prj b/contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testLanduse.prj similarity index 100% rename from contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testLanduse.prj rename to contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testLanduse.prj diff --git a/contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testLanduse.qmd b/contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testLanduse.qmd similarity index 100% rename from contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testLanduse.qmd rename to contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testLanduse.qmd diff --git a/contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testLanduse.shp b/contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testLanduse.shp similarity index 100% rename from contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testLanduse.shp rename to contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testLanduse.shp diff --git a/contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testLanduse.shx b/contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testLanduse.shx similarity index 100% rename from contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testLanduse.shx rename to contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testLanduse.shx diff --git a/contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testZones.cpg b/contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testZones.cpg similarity index 100% rename from contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testZones.cpg rename to contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testZones.cpg diff --git a/contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testZones.dbf b/contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testZones.dbf similarity index 100% rename from contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testZones.dbf rename to contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testZones.dbf diff --git a/contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testZones.prj b/contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testZones.prj similarity index 100% rename from contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testZones.prj rename to contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testZones.prj diff --git a/contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testZones.qmd b/contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testZones.qmd similarity index 100% rename from contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testZones.qmd rename to contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testZones.qmd diff --git a/contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testZones.shp b/contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testZones.shp similarity index 100% rename from contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testZones.shp rename to contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testZones.shp diff --git a/contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testZones.shx b/contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testZones.shx similarity index 100% rename from contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testZones.shx rename to contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/shp/testZones.shx diff --git a/contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/vehicleTypes.xml b/contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/vehicleTypes.xml similarity index 100% rename from contribs/application/test/input/org/matsim/smallScaleCommercialTrafficGeneration/vehicleTypes.xml rename to contribs/small-scale-traffic-generation/test/input/org/matsim/smallScaleCommercialTrafficGeneration/vehicleTypes.xml