Migration
Begin
For
(Each bacterium)
If
(Rules are all both satisfied)
Migration to a new place (using (
3.3
))
else
Chemotaxis (using (
3.1
))
End if
End For
End
Pseudocode 2:
Pseudocode for migration.