MalariaSentinel — C++ reference
The contract-defining headers of the ABM engine
Loading...
Searching...
No Matches
mal_abm_fast::HabitatPatch Struct Reference

#include <wire.hpp>

Public Attributes

int64_t patch_id = 0
 Runtime-assigned row-major index of the patch.
int32_t row = 0
 Grid row index of the patch cell.
int32_t col = 0
 Grid column index of the patch cell.
float potential = 0.0f
 H_total in [0, 1].
double lon = 0.0
 EPSG:4326 deg.
double lat = 0.0
 EPSG:4326 deg.
int dynamics = 0
 0 = persistent offer, 1 = pluvial offer

Detailed Description

A single habitat patch loaded from the gpkg. Carries the cell (row, col), the static potential amplitude (H total in [0, 1]) and the dominant habitat type's dynamics label. proxy_habitat_v1 contract (env.py):

  • patch_id — row-major WM index for the (row, col); runtime assigned
  • potential — H_total = sum_g H[i,g] (attraction amplitude)
  • hab_col_ — the six per-type H features are carried at the coordinator level (habitat_features struct), not here.

The documentation for this struct was generated from the following file:
  • mal-core/src/mal_core/abm/include/mal_abm_fast/wire.hpp