UniSet 2.45.1
Класс st2js.mapping.SensorMapping
Граф связей класса st2js.mapping.SensorMapping:

Открытые члены

'SensorMappingfor_file (self, str filename)

Статические открытые данные

list inputs [SensorEntry]
list outputs [SensorEntry]
MappingOptions options = field(default_factory=MappingOptions)
dict files = field(default_factory=dict)
list load_head = field(default_factory=list)
list load_on_start = field(default_factory=list)

Подробное описание

Complete sensor mapping configuration.

Contains input and output sensor entries plus mapping options.
Optionally contains per-file overrides in `files` dict.

Методы

◆ for_file()

'SensorMapping' st2js.mapping.SensorMapping.for_file ( self,
str filename )
Get a SensorMapping specialized for a specific file.

Merges per-file overrides on top of the global mapping:
- inputs / outputs: concatenated (duplicates preserved — a per-file
  entry with the same ST name intentionally extends the list)
- var_prefix / func_prefix: per-file value wins if non-empty
- load_head / load_on_start: concatenated with first-occurrence
  dedup (exact string match), so a module listed both globally and
  per-file is loaded only once.