Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
JuPedSim
JPScore
Commits
4109b576
Commit
4109b576
authored
Apr 30, 2014
by
Ulrich Kemloh
Browse files
random number generator in the global router actualized
parent
7e07a914
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
inputfiles/ship_msw/ini_ship2.xml
View file @
4109b576
...
...
@@ -70,8 +70,8 @@
<group
group_id=
"5"
room_id=
"0"
subroom_id=
"0"
number=
"0"
goal_id=
""
router_id=
"1"
route_id=
""
motivation=
""
/>
<group
group_id=
"0"
room_id=
"0"
subroom_id=
"0"
number=
"0"
goal_id=
""
router_id=
"1"
route_id=
""
/>
<group
group_id=
"1"
room_id=
"0"
subroom_id=
"1"
number=
"0"
goal_id=
""
router_id=
"2"
route_id=
""
patience=
"5"
/>
<group
group_id=
"2"
room_id=
"0"
number=
"
7
00"
goal_id=
"-1"
router_id=
"2"
patience=
"40"
/>
<group
group_id=
"3"
room_id=
"1"
subroom_id=
"1"
number=
"
1
0"
goal_id=
"-1"
router_id=
"2"
patience=
"20"
/>
<group
group_id=
"2"
room_id=
"0"
number=
"
5
00"
goal_id=
"-1"
router_id=
"2"
patience=
"40"
/>
<group
group_id=
"3"
room_id=
"1"
subroom_id=
"1"
number=
"0"
goal_id=
"-1"
router_id=
"2"
patience=
"20"
/>
</agents_distribution>
</agents>
...
...
routing/GlobalRouter.cpp
View file @
4109b576
This diff is collapsed.
Click to expand it.
routing/GlobalRouter.h
View file @
4109b576
...
...
@@ -184,6 +184,9 @@ private:
///map the internal crossings/transition id to
///the global ID (description) for that final destination
std
::
map
<
int
,
int
>
_mapIdToFinalDestination
;
// normalize the probs
std
::
default_random_engine
_rdGenerator
;
std
::
uniform_real_distribution
<
double
>
_rdDistribution
;
protected:
std
::
map
<
int
,
AccessPoint
*>
_accessPoints
;
...
...
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