Package mosp_examples :: Module statemachine_wiggler
[hide private]
[frames] | no frames]

Module statemachine_wiggler

source code

State-machine steering example: people destinations selected by p_state-machine


Author: B. Henne, F. Ludwig, P. Tute

Contact: henne@dcsec.uni-hannover.de

Copyright: (c) 2010-2012, DCSec, Leibniz Universitaet Hannover, Germany

License: GPLv3

Classes [hide private]
  WorkWiggler
The WorkWiggler wakes up between 6 and 8 o'clock and goes to work.
  DrunkWiggler
The DrunkWiggler wakes up between 8 and 10 o'clock and goes to work, then drinking ...
  RandomWiggler
Implements a person doing random movement the whole day.
  SocketPlayerClock
A minimal clock for viewing in the SocketPlayerMonitor viewer
Functions [hide private]
 
main()
Defines the simulation, map, monitor, different people.
source code
Variables [hide private]
  WORKPLACES = [2679, 2418, 2217, 1799, 1962]
hard-coded MOSP node ids (no osm ids!) of map selected as workplaces - get them via node_finder.py.
  BARS = [2213, 1171, 2464, 2459, 2528, 1987]
hard-coded MOSP node ids (no osm ids!) of map selected as bars - get them via node_finder.py.
  __package__ = 'mosp_examples'
Function Details [hide private]

main()

source code 

Defines the simulation, map, monitor, different people.

Combines 20 WorkWigglers, 20 DrunkWigglers and 5 RandomWigglers.