Skip to content
Skip to Content

bindings

Key of the [data] table. Qualified name: data.bindings

Each table role an active plugin declares, mapped to exactly one data-manifest entry id; keys are canonical role names (`p:<ns>/<plugin>.<role>`, `c:<ns>/<Contract>.<role>`) or a unique short form, or one of the kernel's own roles named by their schema (`population.person`, `population.link`, `territory.unit`, `population.dwelling`, `population.residence`, `spatial.position`, and the `place.*` tables when a plugin declares a collective type).

Type
table
Unit
none
Default
{}used when the key is absent
Valid range
a tablecontent checked by its owner
Set in
[data]optional table
Since
0.1engine 0.1.0

Description

bindings is optional. When it is absent, the engine uses {}, and writes that value into effective.toml in the output folder.

Example

scenario.toml
# scenario.toml

[scenario]
name = "tracer"
seed = 20180101

[time]
start = 2018-01-01
end = 2019-01-01

[data]
manifest = "data/data-manifest.toml"

[data.bindings]  # this page

[plugins."test/ticker"]

This table points at a data manifest written by cohortix-data; the example runs once data/data-manifest.toml exists. See Bring your own data.

Errors that name this key

  • E1008: bindings must be …, but it is ….
  • E1022: Unknown key … in [data]; did you mean …?

See also

  • [data]Data manifest written by cohortix-data, and the table roles bound to its entries.
  • manifestPath of the data manifest, relative to the scenario file.

Generated from crates/cohortix-kernel/src/scenario/config.rs. Do not edit. This page (key data.bindings) is built from the engine sources at every documentation build. To change it, edit its ConfigKey in kernel_groups() and its one-line comment config.key.data.bindings in schemas/messages/en.toml and open a pull request.

On this page

You are reading the docs for 0.1. Keys can change between versions: use the version that matches cohortix --version.