ScriptingMapper#

class ansys.sam.sysml2.builder.mapper.scripting_mapper.ScriptingMapper#

Bases: ansys.sam.sysml2.builder.mapper.mapper.Mapper

JSON mapper for scripting-layer SysML elements.

Overview#

map

Map the JSON into a python element.

Import detail#

from ansys.sam.sysml2.builder.mapper.scripting_mapper import ScriptingMapper

Attribute detail#

ScriptingMapper.class_cache#

Method detail#

ScriptingMapper.map(namespace: str, json_element: dict, mapped_element: ansys.sam.sysml2.classes.sysml_element.SysMLElement) ansys.sam.sysml2.classes.mapped_element.MappedElement#

Map the JSON into a python element.

Parameters:
namespacestr

Project namespace.

json_elementdict

Element data.

mapped_elementSysMLElement

Existing element.

Returns:
MappedElement

Mapped element.