Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
vadere
vadere
Commits
46d652c9
Commit
46d652c9
authored
May 28, 2018
by
Benedikt Zoennchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correct wrong assertion test: checks if peds are outside of the bound.
parent
8f79cc5a
Pipeline
#55679
passed with stage
in 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
VadereSimulator/src/org/vadere/simulator/control/Simulation.java
...imulator/src/org/vadere/simulator/control/Simulation.java
+1
-1
No files found.
VadereSimulator/src/org/vadere/simulator/control/Simulation.java
View file @
46d652c9
...
...
@@ -227,7 +227,7 @@ public class Simulation {
private
boolean
assertAllPedestrianInBounds
()
{
Rectangle2D
.
Double
bounds
=
topography
.
getBounds
();
Collection
<
Pedestrian
>
peds
=
topography
.
getElements
(
Pedestrian
.
class
);
return
peds
.
stream
().
map
(
ped
->
ped
.
getPosition
()).
a
ny
Match
(
pos
->
!
bounds
.
contains
(
pos
.
getX
(),
pos
.
getY
()));
return
peds
.
stream
().
map
(
ped
->
ped
.
getPosition
()).
a
ll
Match
(
pos
->
bounds
.
contains
(
pos
.
getX
(),
pos
.
getY
()));
}
private
SimulationState
initialSimulationState
()
{
...
...
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