From aa8ff1fe72939eca992579bc8c20ebe78ae35ad3 Mon Sep 17 00:00:00 2001 From: Benedikt Zoennchen Date: Tue, 24 Oct 2017 14:51:09 +0200 Subject: [PATCH] add new queueing model test for the osm --- .../queueing_floor_field_osm1.scenario | 250 ++++++++++++++++++ 1 file changed, 250 insertions(+) create mode 100644 VadereModelTests/TestOSM/scenarios/queueing_floor_field_osm1.scenario diff --git a/VadereModelTests/TestOSM/scenarios/queueing_floor_field_osm1.scenario b/VadereModelTests/TestOSM/scenarios/queueing_floor_field_osm1.scenario new file mode 100644 index 000000000..fa284d8e3 --- /dev/null +++ b/VadereModelTests/TestOSM/scenarios/queueing_floor_field_osm1.scenario @@ -0,0 +1,250 @@ +{ + "name" : "queueing_floor_field_osm1", + "description" : "", + "release" : "0.2", + "processWriters" : { + "files" : [ { + "type" : "org.vadere.simulator.projects.dataprocessing.outputfile.TimestepPedestrianIdOutputFile", + "filename" : "/Users/bzoennchen/Development/workspaces/hmRepo/GitLab/vadere/VadereModelTests/TestOSM/output/queueing_floor_field_osm1_2017-10-24_14-50-26.402/postvis.trajectories", + "processors" : [ 1, 2 ] + } ], + "processors" : [ { + "type" : "org.vadere.simulator.projects.dataprocessing.processor.PedestrianPositionProcessor", + "id" : 1 + }, { + "type" : "org.vadere.simulator.projects.dataprocessing.processor.PedestrianTargetIdProcessor", + "id" : 2 + } ], + "isTimestamped" : true + }, + "scenario" : { + "mainModel" : "org.vadere.simulator.models.osm.OptimalStepsModel", + "attributesModel" : { + "org.vadere.state.attributes.models.AttributesOSM" : { + "stepCircleResolution" : 18, + "numberOfCircles" : 1, + "varyStepDirection" : false, + "stepLengthIntercept" : 0.4625, + "stepLengthSlopeSpeed" : 0.2345, + "stepLengthSD" : 0.036, + "movementThreshold" : 0.0, + "optimizationType" : "DISCRETE", + "movementType" : "ARBITRARY", + "dynamicStepLength" : false, + "updateType" : "EVENT_DRIVEN", + "seeSmallWalls" : false, + "minimumStepLength" : false, + "targetPotentialModel" : "org.vadere.simulator.models.potential.fields.PotentialFieldTargetGrid", + "pedestrianPotentialModel" : "org.vadere.simulator.models.potential.PotentialFieldPedestrianCompact", + "obstaclePotentialModel" : "org.vadere.simulator.models.potential.PotentialFieldObstacleCompact", + "submodels" : [ ] + }, + "org.vadere.state.attributes.models.AttributesPotentialCompact" : { + "pedPotentialWidth" : 0.5, + "pedPotentialHeight" : 12.6, + "obstPotentialWidth" : 0.25, + "obstPotentialHeight" : 20.1, + "useHardBodyShell" : false, + "obstDistanceDeviation" : 0.0, + "visionFieldRadius" : 5.0 + }, + "org.vadere.state.attributes.models.AttributesFloorField" : { + "createMethod" : "HIGH_ACCURACY_FAST_MARCHING", + "potentialFieldResolution" : 0.1, + "obstacleGridPenalty" : 0.1, + "targetAttractionStrength" : 1.0, + "timeCostAttributes" : { + "standardDerivation" : 0.7, + "type" : "QUEUEING", + "obstacleDensityWeight" : 3.5, + "pedestrianSameTargetDensityWeight" : 3.5, + "pedestrianOtherTargetDensityWeight" : 3.5, + "pedestrianWeight" : 3.5, + "queueWidthLoading" : 5.0, + "pedestrianDynamicWeight" : 6.0, + "loadingType" : "CONSTANT" + } + } + }, + "attributesSimulation" : { + "finishTime" : 450.0, + "simTimeStepLength" : 0.4, + "realTimeSimTimeRatio" : 0.1, + "writeSimulationData" : true, + "visualizationEnabled" : true, + "printFPS" : false, + "needsBoundary" : false, + "digitsPerCoordinate" : 2, + "useRandomSeed" : true, + "randomSeed" : 1 + }, + "topography" : { + "attributes" : { + "bounds" : { + "x" : 0.0, + "y" : 0.0, + "width" : 50.0, + "height" : 10.0 + }, + "boundingBoxWidth" : 0.5, + "bounded" : true + }, + "obstacles" : [ { + "shape" : { + "x" : 45.1, + "y" : 6.0, + "width" : 4.4, + "height" : 2.0, + "type" : "RECTANGLE" + }, + "id" : -1 + }, { + "shape" : { + "x" : 45.0, + "y" : 3.0, + "width" : 4.5, + "height" : 2.0, + "type" : "RECTANGLE" + }, + "id" : -1 + }, { + "shape" : { + "type" : "POLYGON", + "points" : [ { + "x" : -1.0E-4, + "y" : -1.0E-4 + }, { + "x" : 50.0001, + "y" : -1.0E-4 + }, { + "x" : 50.0001, + "y" : 0.5001 + }, { + "x" : -1.0E-4, + "y" : 0.5001 + } ] + }, + "id" : -1 + }, { + "shape" : { + "type" : "POLYGON", + "points" : [ { + "x" : 50.0001, + "y" : -1.0E-4 + }, { + "x" : 50.0001, + "y" : 10.0001 + }, { + "x" : 49.4999, + "y" : 10.0001 + }, { + "x" : 49.4999, + "y" : -1.0E-4 + } ] + }, + "id" : -1 + }, { + "shape" : { + "type" : "POLYGON", + "points" : [ { + "x" : 50.0001, + "y" : 10.0001 + }, { + "x" : -1.0E-4, + "y" : 10.0001 + }, { + "x" : -1.0E-4, + "y" : 9.4999 + }, { + "x" : 50.0001, + "y" : 9.4999 + } ] + }, + "id" : -1 + }, { + "shape" : { + "type" : "POLYGON", + "points" : [ { + "x" : -1.0E-4, + "y" : 10.0001 + }, { + "x" : -1.0E-4, + "y" : -1.0E-4 + }, { + "x" : 0.5001, + "y" : -1.0E-4 + }, { + "x" : 0.5001, + "y" : 10.0001 + } ] + }, + "id" : -1 + } ], + "stairs" : [ ], + "targets" : [ { + "id" : 1, + "absorbing" : true, + "shape" : { + "x" : 46.5, + "y" : 5.0, + "width" : 3.0, + "height" : 1.0, + "type" : "RECTANGLE" + }, + "waitingTime" : 5.0, + "waitingTimeYellowPhase" : 0.0, + "parallelWaiters" : 0, + "individualWaiting" : true, + "deletionDistance" : 0.1, + "startingWithRedLight" : false, + "nextSpeed" : -1.0 + } ], + "sources" : [ { + "id" : 2, + "shape" : { + "x" : 1.1, + "y" : 4.0, + "width" : 2.9, + "height" : 3.1, + "type" : "RECTANGLE" + }, + "interSpawnTimeDistribution" : "org.vadere.state.scenario.ConstantDistribution", + "distributionParameters" : [ 1.0 ], + "spawnNumber" : 3, + "maxSpawnNumberTotal" : -1, + "startTime" : 0.0, + "endTime" : 40.0, + "spawnAtRandomPositions" : true, + "useFreeSpaceOnly" : false, + "targetIds" : [ 1 ], + "dynamicElementType" : "PEDESTRIAN" + } ], + "dynamicElements" : [ ], + "attributesPedestrian" : { + "radius" : 0.195, + "densityDependentSpeed" : false, + "speedDistributionMean" : 1.34, + "speedDistributionStandardDeviation" : 0.0, + "minimumSpeed" : 0.3, + "maximumSpeed" : 3.0, + "acceleration" : 2.0 + }, + "attributesCar" : { + "id" : -1, + "radius" : 0.195, + "densityDependentSpeed" : false, + "speedDistributionMean" : 1.34, + "speedDistributionStandardDeviation" : 0.0, + "minimumSpeed" : 0.3, + "maximumSpeed" : 3.0, + "acceleration" : 2.0, + "length" : 4.5, + "width" : 1.7, + "direction" : { + "x" : 1.0, + "y" : 0.0 + } + } + } + } +} \ No newline at end of file -- GitLab