Trees | Indices | Help |
|
---|
|
Models a random movement BT-virus infection
Mobile device gets infected if compatible device is in range of 10 to 20m for 15 seconds.
Author: B. Henne
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
|||
p_infected infected? |
|||
pplInRange stores infecting people in range |
|||
p_infecttime time if infection |
|||
p_color color for playerChamplain |
|||
p_color_rgba color for sim_viewer.py |
|||
p_infectionPlace coordinates of infection |
|||
Inherited from Inherited from |
|
|||
Inherited from Inherited from |
|
Init the BT-Infect-Wiggler.
|
Randomly finds a new next_node to move to. Ignores the last visited node, if possible without getting stuck. Does not set destination_node. Random movement only uses last_node and next_node of a Person.
Author: P. Tute |
The infection routine itself. If not infected, person gets infected if bad one is in range of 10 to 20m for 15 seconds. |
The BT infect action. Every tick this action is called (using the mosp action decorator). This action looks for people in range of random(10,20) meters, and calls their tryinfect() routine (300s start delay is done by start_action(this, delay=300). Action is not active at beginning. It is activated by self.infect_other.start() and then is called every tick.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun Jul 6 13:59:51 2014 | http://epydoc.sourceforge.net |