bim2sim.plugins.PluginTEASER.bim2sim_teaser.export package

Package for TEASER export

class bim2sim.plugins.PluginTEASER.bim2sim_teaser.export.Dummy(element: Element)

Bases: TEASERExportInstance

represents

alias of Dummy

exception bim2sim.plugins.PluginTEASER.bim2sim_teaser.export.FactoryError

Bases: Exception

Error in Model factory

class bim2sim.plugins.PluginTEASER.bim2sim_teaser.export.TEASERExportInstance(element: Element)

Bases: object

TEASER model instance

static check_numeric(min_value=None, max_value=None)

Generic check function generator returns check function

static check_param(param, check)

Check if parameter is valid.

Parameters:
  • param – parameter to check

  • check – validation function for parameter

collect_params()

Collect all requested parameters.

First checks if the parameter is a list or a quantity, next uses the check function provided by the request_param function to check every value of the parameter, afterward converts the parameter values to the special units provided by the request_param function, finally stores the parameter on the model instance.

dummy: Type[TEASERExportInstance] = None
export_elements: List[object] = []
static factory(element, parent)

Create model depending on ifc_element

static get_library_classes(library) List[Type[TEASERExportInstance]]
static handle_ceiling_floor(element, parent)

Handle if a bim2sim Floor is a TEASER Ceiling or Floor.

This function uses information of Space Boundaries to determine the correct type of the given element. TEASER has Ceiling and Floor while IFC and thus also bim2sim only knows Floors.

Args:

element: bim2sim element parent: parent, in this case a ThermalZone or AggregatedThermalZone

element

Returns:

export_cls: Either Ceiling or Floor class of TEASER

static init_factory(libraries)

initialize lookup for factory

library: str = None
lookup: Dict[Type[Element], List[Type[TEASERExportInstance]]] = {}
represents: Element | Container[Element] = None
request_param(name: str, check=None, export_name: str = None, export_unit: str = '')

Parameter gets marked as required and will be checked.

Hint: run collect_params() to collect actual values after requests.

Parameters:
  • name – name of parameter to request

  • check – validation function for parameter

  • export_name – name of parameter in export. Defaults to name

  • export_unit – unit of parameter in export. Converts to SI

units if not specified otherwise

request_params()

Request all required parameters.

requested_elements: List[Element] = []