Generic Element

Generic element is the most basic element type, both in terms of how it's declared and what happens with it "behind the scenes".

Other element types can be often described in comparison to the generic element.

Generic element can be declared for any entity type.

Declaration

Required:

  • id string id of the element
  • type type of the element, set to generic

Optional:

  • entity entity type the property will be associated with (default is region)
  • states list of states (default is base state setup, see below)
  • vars list of vars
# example
element:
  - id: generic_element_example
    type: generic
    entity: region
    vars:
      - id: some_numeric_var
        type: number
      - id: some_string_var
        type: string
    states:
      - id: update
        commands:
          - ext_set
              /global/earth/map/forest_coverage_map/var/ext_region_average_value_addr
              @prop/forest_coverage
          - ext_invoke
              /global/earch/map/forest_coverage_map/state/update_ext_region_average_value

Built-in states

Generic element doesn't feature any additional built-in states apart from the defaults common for all elements.