|
MalariaSentinel — C++ reference
The contract-defining headers of the ABM engine
|
#include <wire.hpp>
Public Attributes | |
| int64_t | patch_id = 0 |
| Identifier of the habitat patch this state refers to. | |
| int32_t | row = 0 |
| Grid row index of the patch cell. | |
| int32_t | col = 0 |
| Grid column index of the patch cell. | |
| bool | activated = false |
| True when today's habitat availability reaches the activation threshold. | |
| float | rain_d = 0.0f |
| mm, today's daily rainfall at the cell | |
| float | temp_d = 25.0f |
| float | habitat_avail = 0.0f |
| int | habitat_dry_days = 0 |
| consecutive days below habitat.activation_min_engine | |
| float | k_habitat = 0.0f |
| daily Beverton-Holt capacity (absolute count) | |
| float | salinity_ppt = 0.0f |
| env water salinity (psu); 0 = freshwater | |
Patch (row, col) state for one day. This is the per-patch record the coordinator hands to the MosquitoSubmodel. Mirrors the Polars patch_state.PATCH_STATE_SCHEMA in the Python engine.
| float mal_abm_fast::PatchState::habitat_avail = 0.0f |
proxy_habitat_v1: species-neutral overall availability of the patch today, S(i, t) in [0, 1] (weights + H total + z combined). Replaces the retired water_frac / pool_water_mm signalling.
| float mal_abm_fast::PatchState::temp_d = 25.0f |
deg C, post thermal inverse (EIP uses T)