Skip to content

BuildingElementAttributeList

Implementation of the attribute list

BuildingElementAttributeList

Canonical path: BuildingElementAttributeList.BuildingElementAttributeList

Implementation of the attribute list

__iadd__

implement the += operator

Parameters:

Returns:

__init__

__init__() -> None

initialize

__repr__

__repr__() -> str

create the data as string

Returns:

  • str

    data string

add_attribute

add_attribute(attribute_id: int, attribute_value: Any)

add an attribute to the list

Parameters:

  • attribute_id (int) –

    attribute ID

  • attribute_value (Any) –

    attribute value

add_attribute_by_unit

add_attribute_by_unit(attribute_id: int, attribute_value: Any)

add an attribute to the list, convert the value to the attribute unit

Parameters:

  • attribute_id (int) –

    attribute ID

  • attribute_value (Any) –

    attribute value

add_attribute_list

add_attribute_list(attribute_list: list[Attribute])

add an attribute list

Parameters:

  • attribute_list (list[Attribute]) –

    attribute list

add_attributes

add_attributes(attributes: list[tuple[int, Any]])

add attributes to the list

Parameters:

  • attributes (list[tuple[int, Any]]) –

    attribute list

add_attributes_by_unit

add_attributes_by_unit(attributes: list[tuple[int, Any]])

add attributes to the list, convert the value to the attribute unit

Parameters:

  • attributes (list[tuple[int, Any]]) –

    attribute list

add_attributes_from_parameters

add_attributes_from_parameters(build_ele: BuildingElement)

add the attributes from the parameter attributes

Parameters:

  • build_ele (BuildingElement) –

    building element with the parameter properties

get_attribute_list

get_attribute_list() -> list[Attribute]

get the attribute list

Returns:

get_attributes_list_as_tuples

get_attributes_list_as_tuples() -> list[tuple[int, Any]]

Returns a list of attribute ids and values grouped as a tuple.

Returns:

  • list[tuple[int, Any]]

    list[tuple[int, Any]]: list of attribute ids and values as a tuple.

Placeholder