Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
vadere
vadere
Commits
00a8baec
Commit
00a8baec
authored
Apr 17, 2020
by
Christina
Browse files
fixed bug
parent
1bfb0606
Pipeline
#238260
failed with stages
in 2 minutes and 33 seconds
Changes
3
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Scenarios/Demos/supermarket/scenarios/supermarket_basic.scenario
View file @
00a8baec
This diff is collapsed.
Click to expand it.
VadereSimulator/log.out-04-17-20-16-46-26-1.log.gz
0 → 100644
View file @
00a8baec
File added
VadereState/src/org/vadere/state/attributes/scenario/AttributesTargetChanger.java
View file @
00a8baec
...
...
@@ -36,7 +36,9 @@ public class AttributesTargetChanger extends AttributesEmbedShape {
* Change target of a given pedestrian only with a certain probability between
* 0 and 1.
*/
private
LinkedList
<
Double
>
probabilitiesToChangeTarget
=
new
LinkedList
<
Double
>(
Arrays
.
asList
(
1.0
));
private
LinkedList
<
Double
>
probabilityToChangeTarget
=
new
LinkedList
<
Double
>(
Arrays
.
asList
(
1.0
));
// Constructors
public
AttributesTargetChanger
()
{
...
...
@@ -63,7 +65,7 @@ public class AttributesTargetChanger extends AttributesEmbedShape {
}
}
this
.
probabilit
ies
ToChangeTarget
=
this
.
probabilitiesToChangeTarget
;
this
.
probabilit
y
ToChangeTarget
=
probabilitiesToChangeTarget
;
}
// Getters
...
...
@@ -89,7 +91,7 @@ public class AttributesTargetChanger extends AttributesEmbedShape {
}
public
LinkedList
<
Double
>
getProbabilitiesToChangeTarget
()
{
return
probabilit
ies
ToChangeTarget
;
return
probabilit
y
ToChangeTarget
;
}
// Setters
...
...
@@ -124,7 +126,7 @@ public class AttributesTargetChanger extends AttributesEmbedShape {
throw
new
IllegalArgumentException
(
"Probability must be in range 0.0 to 1.0!"
);
}
}
this
.
probabilit
ies
ToChangeTarget
=
probabilitiesToChangeTarget
;
this
.
probabilit
y
ToChangeTarget
=
probabilitiesToChangeTarget
;
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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