6.2.5.35. Architecture-HierarchicalMapping

Create a hierarchical mapping

Required inputs: RFG

Creates a mapping view for architecture models whose hierarchical structure (i.e., the containment relation of architectural entities) corresponds tightly to the structure of the hierarchy view.

Possible Messages

This rule has no predefined messages.

Options

architecture_root

architecture_root : str = ''

Architecture root given as sequence of source names, separated by "/", e.g. "Model/Architecture/System".
 

architecture_view_name

architecture_view_name : str = 'Architecture'

Name of the architecture view to use.
 

export_warnings

export_warnings : bool = True

Export output messages to the analysis database.
 

hierarchy_root

hierarchy_root : str = ''

Hierarchy root given as sequence of source names, separated by "/", e.g. "lib/src".
 

hierarchy_view_name

hierarchy_view_name : str = 'File'

Name of the hierarchy view to use
 

loglevel

loglevel : LogLevel = 'WARNING'

Logging mode. WARNING only outputs errors and warnings, INFO additionally prints info messages, DEBUG additionally outputs info and debug messages.
 

map_roots

map_roots : bool = True

If set to true add a mapping from hierarchy root to architecture root node.
 

mapping_view_name

mapping_view_name : str = 'Mapping'

Name of the mapping view to be created.
 

transitions

transitions

Type: list[typing.Tuple[int, typing.Callable[[_dg.Node, _dg.View], bool], typing.Callable[[_dg.Node, _dg.View], bool], typing.Callable[[_dg.Node, _dg.Node], bool], typing.Optional[str], int]]

Default: [(0, <function bauhaus.rules.axivion.architecture.hierarchical_mapping.<lambda>(n, _v)>, <function bauhaus.rules.axivion.architecture.hierarchical_mapping.<lambda>(n, _v)>, <function bauhaus.architecture.mappings.same_source_name(n1, n2)>, 'Maps_To', 0), (0, <function bauhaus.rules.axivion.architecture.hierarchical_mapping.<lambda>(n, _v)>, <function bauhaus.rules.axivion.architecture.hierarchical_mapping.<lambda>(n, _v)>, <function bauhaus.architecture.mappings.same_source_name_without_ending(arch_node, file_node)>, 'Maps_To', -1)]

Transition table for the tree transducer.
 

Option Types

These types are used by options listed above:

LogLevel

An enumeration.
 
  • WARNING

  • INFO

  • DEBUG