Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
vadere
vadere
Commits
a797bf5c
Commit
a797bf5c
authored
Sep 18, 2016
by
Jakob Schöttl
Browse files
Make test scenario without any persons
parent
a06fa214
Changes
2
Hide whitespace changes
Inline
Side-by-side
VadereSimulator/testResources/data/test-train-topography.json
View file @
a797bf5c
...
...
@@ -8708,287 +8708,7 @@
"targetIds"
:
[
],
"dynamicElementType"
:
"PEDESTRIAN"
}
],
"dynamicElements"
:
[
{
"targetIds"
:
[
],
"position"
:
{
"x"
:
48.623749999999994
,
"y"
:
2.24125
},
"velocity"
:
{
"x"
:
0.0
,
"y"
:
0.0
},
"nextTargetListIndex"
:
0
,
"freeFlowSpeed"
:
1.34
,
"attributes"
:
{
"id"
:
-1
,
"radius"
:
0.195
,
"densityDependentSpeed"
:
false
,
"speedDistributionMean"
:
1.34
,
"speedDistributionStandardDeviation"
:
0.0
,
"minimumSpeed"
:
0.3
,
"maximumSpeed"
:
3.0
,
"acceleration"
:
2.0
},
"idAsTarget"
:
-1
,
"modelPedestrianMap"
:
{
},
"isChild"
:
false
,
"isLikelyInjured"
:
false
,
"groupIds"
:
[
],
"type"
:
"PEDESTRIAN"
},
{
"targetIds"
:
[
],
"position"
:
{
"x"
:
35.42374999999999
,
"y"
:
4.51375
},
"velocity"
:
{
"x"
:
0.0
,
"y"
:
0.0
},
"nextTargetListIndex"
:
0
,
"freeFlowSpeed"
:
1.34
,
"attributes"
:
{
"id"
:
-1
,
"radius"
:
0.195
,
"densityDependentSpeed"
:
false
,
"speedDistributionMean"
:
1.34
,
"speedDistributionStandardDeviation"
:
0.0
,
"minimumSpeed"
:
0.3
,
"maximumSpeed"
:
3.0
,
"acceleration"
:
2.0
},
"idAsTarget"
:
-1
,
"modelPedestrianMap"
:
{
},
"isChild"
:
false
,
"isLikelyInjured"
:
false
,
"groupIds"
:
[
],
"type"
:
"PEDESTRIAN"
},
{
"targetIds"
:
[
],
"position"
:
{
"x"
:
4.626250000000001
,
"y"
:
4.51375
},
"velocity"
:
{
"x"
:
0.0
,
"y"
:
0.0
},
"nextTargetListIndex"
:
0
,
"freeFlowSpeed"
:
1.34
,
"attributes"
:
{
"id"
:
-1
,
"radius"
:
0.195
,
"densityDependentSpeed"
:
false
,
"speedDistributionMean"
:
1.34
,
"speedDistributionStandardDeviation"
:
0.0
,
"minimumSpeed"
:
0.3
,
"maximumSpeed"
:
3.0
,
"acceleration"
:
2.0
},
"idAsTarget"
:
-1
,
"modelPedestrianMap"
:
{
},
"isChild"
:
false
,
"isLikelyInjured"
:
false
,
"groupIds"
:
[
],
"type"
:
"PEDESTRIAN"
},
{
"targetIds"
:
[
],
"position"
:
{
"x"
:
18.923749999999995
,
"y"
:
4.51375
},
"velocity"
:
{
"x"
:
0.0
,
"y"
:
0.0
},
"nextTargetListIndex"
:
0
,
"freeFlowSpeed"
:
1.34
,
"attributes"
:
{
"id"
:
-1
,
"radius"
:
0.195
,
"densityDependentSpeed"
:
false
,
"speedDistributionMean"
:
1.34
,
"speedDistributionStandardDeviation"
:
0.0
,
"minimumSpeed"
:
0.3
,
"maximumSpeed"
:
3.0
,
"acceleration"
:
2.0
},
"idAsTarget"
:
-1
,
"modelPedestrianMap"
:
{
},
"isChild"
:
false
,
"isLikelyInjured"
:
false
,
"groupIds"
:
[
],
"type"
:
"PEDESTRIAN"
},
{
"targetIds"
:
[
],
"position"
:
{
"x"
:
28.823749999999993
,
"y"
:
2.24125
},
"velocity"
:
{
"x"
:
0.0
,
"y"
:
0.0
},
"nextTargetListIndex"
:
0
,
"freeFlowSpeed"
:
1.34
,
"attributes"
:
{
"id"
:
-1
,
"radius"
:
0.195
,
"densityDependentSpeed"
:
false
,
"speedDistributionMean"
:
1.34
,
"speedDistributionStandardDeviation"
:
0.0
,
"minimumSpeed"
:
0.3
,
"maximumSpeed"
:
3.0
,
"acceleration"
:
2.0
},
"idAsTarget"
:
-1
,
"modelPedestrianMap"
:
{
},
"isChild"
:
false
,
"isLikelyInjured"
:
false
,
"groupIds"
:
[
],
"type"
:
"PEDESTRIAN"
},
{
"targetIds"
:
[
],
"position"
:
{
"x"
:
60.17374999999999
,
"y"
:
4.03125
},
"velocity"
:
{
"x"
:
0.0
,
"y"
:
0.0
},
"nextTargetListIndex"
:
0
,
"freeFlowSpeed"
:
1.34
,
"attributes"
:
{
"id"
:
-1
,
"radius"
:
0.195
,
"densityDependentSpeed"
:
false
,
"speedDistributionMean"
:
1.34
,
"speedDistributionStandardDeviation"
:
0.0
,
"minimumSpeed"
:
0.3
,
"maximumSpeed"
:
3.0
,
"acceleration"
:
2.0
},
"idAsTarget"
:
-1
,
"modelPedestrianMap"
:
{
},
"isChild"
:
false
,
"isLikelyInjured"
:
false
,
"groupIds"
:
[
],
"type"
:
"PEDESTRIAN"
},
{
"targetIds"
:
[
],
"position"
:
{
"x"
:
44.226249999999986
,
"y"
:
4.51375
},
"velocity"
:
{
"x"
:
0.0
,
"y"
:
0.0
},
"nextTargetListIndex"
:
0
,
"freeFlowSpeed"
:
1.34
,
"attributes"
:
{
"id"
:
-1
,
"radius"
:
0.195
,
"densityDependentSpeed"
:
false
,
"speedDistributionMean"
:
1.34
,
"speedDistributionStandardDeviation"
:
0.0
,
"minimumSpeed"
:
0.3
,
"maximumSpeed"
:
3.0
,
"acceleration"
:
2.0
},
"idAsTarget"
:
-1
,
"modelPedestrianMap"
:
{
},
"isChild"
:
false
,
"isLikelyInjured"
:
false
,
"groupIds"
:
[
],
"type"
:
"PEDESTRIAN"
},
{
"targetIds"
:
[
],
"position"
:
{
"x"
:
33.77374999999999
,
"y"
:
2.24125
},
"velocity"
:
{
"x"
:
0.0
,
"y"
:
0.0
},
"nextTargetListIndex"
:
0
,
"freeFlowSpeed"
:
1.34
,
"attributes"
:
{
"id"
:
-1
,
"radius"
:
0.195
,
"densityDependentSpeed"
:
false
,
"speedDistributionMean"
:
1.34
,
"speedDistributionStandardDeviation"
:
0.0
,
"minimumSpeed"
:
0.3
,
"maximumSpeed"
:
3.0
,
"acceleration"
:
2.0
},
"idAsTarget"
:
-1
,
"modelPedestrianMap"
:
{
},
"isChild"
:
false
,
"isLikelyInjured"
:
false
,
"groupIds"
:
[
],
"type"
:
"PEDESTRIAN"
},
{
"targetIds"
:
[
],
"position"
:
{
"x"
:
25.523749999999993
,
"y"
:
4.03125
},
"velocity"
:
{
"x"
:
0.0
,
"y"
:
0.0
},
"nextTargetListIndex"
:
0
,
"freeFlowSpeed"
:
1.34
,
"attributes"
:
{
"id"
:
-1
,
"radius"
:
0.195
,
"densityDependentSpeed"
:
false
,
"speedDistributionMean"
:
1.34
,
"speedDistributionStandardDeviation"
:
0.0
,
"minimumSpeed"
:
0.3
,
"maximumSpeed"
:
3.0
,
"acceleration"
:
2.0
},
"idAsTarget"
:
-1
,
"modelPedestrianMap"
:
{
},
"isChild"
:
false
,
"isLikelyInjured"
:
false
,
"groupIds"
:
[
],
"type"
:
"PEDESTRIAN"
},
{
"targetIds"
:
[
],
"position"
:
{
"x"
:
19.476249999999997
,
"y"
:
4.51375
},
"velocity"
:
{
"x"
:
0.0
,
"y"
:
0.0
},
"nextTargetListIndex"
:
0
,
"freeFlowSpeed"
:
1.34
,
"attributes"
:
{
"id"
:
-1
,
"radius"
:
0.195
,
"densityDependentSpeed"
:
false
,
"speedDistributionMean"
:
1.34
,
"speedDistributionStandardDeviation"
:
0.0
,
"minimumSpeed"
:
0.3
,
"maximumSpeed"
:
3.0
,
"acceleration"
:
2.0
},
"idAsTarget"
:
-1
,
"modelPedestrianMap"
:
{
},
"isChild"
:
false
,
"isLikelyInjured"
:
false
,
"groupIds"
:
[
],
"type"
:
"PEDESTRIAN"
}
],
"dynamicElements"
:
[
],
"attributesPedestrian"
:
{
"radius"
:
0.195
,
"densityDependentSpeed"
:
false
,
...
...
VadereSimulator/tests/org/vadere/simulator/models/seating/trainmodel/TestTrainModel.java
View file @
a797bf5c
...
...
@@ -21,7 +21,7 @@ public class TestTrainModel {
private
static
final
int
nInterimDestinations
=
nCompartments
*
3
-
4
;
// includes 2 targets from half-compartments
private
static
final
int
nSeatGroups
=
nCompartments
*
4
-
4
;
private
static
final
int
nSeats
=
nSeatGroups
*
4
;
private
static
final
int
nPersons
=
1
0
;
private
static
final
int
nPersons
=
0
;
private
TrainModel
trainModel
;
...
...
@@ -36,8 +36,7 @@ public class TestTrainModel {
checkSize
(
nInterimDestinations
,
trainModel
.
getInterimDestinations
());
checkSize
(
nSeatGroups
,
trainModel
.
getSeatGroups
());
checkSize
(
nSeats
,
trainModel
.
getSeats
());
// assertEquals(nPersons, trainModel.getPedestrians().size());
// TODO persons are not recognized; that's a problem of Topography!
assertEquals
(
nPersons
,
trainModel
.
getPedestrians
().
size
());
}
@Test
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment