Pseudocode 1: | |
1. | Specify the global temporal parameters over a specified time period, Tk, where k is the number of temporal units in T. |
2. | Define a specified number of agents, AZ, in line with the pre-conceived spatial concentration across the landscape, |
3. | for an agent Az: |
| a) for a temporal bin kt ⊂ T and allowed number of time steps, s |
| i) Sample the locations around the agent and determine the next agent’s location, using the inbuilt (ABM) decision-making process (e.g., preferring low resistance to high resistance location) |
| ii) Draw a new state while transiting to the new location (an)n𝜖N using the in-built stochastic (MSM) function, |
| iii) Record agent’s current details (i.e., location ID, x, y coordinates, time stamp, state, etc.), iv) Return to 4a (i) if n < s. |
| b) Commence the next temporal bin, kt |
4. | Next agent (Ai)i 𝜖 I. |