Commit 4109b576 authored by Ulrich Kemloh's avatar Ulrich Kemloh

random number generator in the global router actualized

parent 7e07a914
......@@ -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="700" goal_id="-1" router_id="2" patience="40"/>
<group group_id="3" room_id="1" subroom_id="1" number="10" goal_id="-1" router_id="2" patience="20"/>
<group group_id="2" room_id="0" number="500" 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>
......
This diff is collapsed.
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment