dftlib.storage.dft_be.BeLognormal

class BeLognormal(element_id: int, name: str, mean: float | str, stddev: float | str, position: tuple[float, float])

Bases: DftBe

BE with log-normal distribution.

Methods

check_valid

compare

Compare elements.

get_json

Get JSON string.

is_be

Get whether the element is a BE.

is_dynamic

Get whether the element is dynamic.

is_gate

Get whether the element is a gate.

parents

Get parents.

remove_parent

Remove parent.

set_relevant

Set whether the element is relevant (and will not be set to 'Don't Care' for example).

compare(other: DftElement, respect_ids: bool) bool

Compare elements. :param other: Other element. :param respect_ids: Whether the ids must be equal. :return: True iff both elements are equal.

get_json() dict

Get JSON string. :return: JSON string.

is_be() bool

Get whether the element is a BE. :return: True iff element is a BE.

is_dynamic() bool

Get whether the element is dynamic. :return: True iff element is dynamic.

is_gate() bool

Get whether the element is a gate. :return: True iff element is a gate.

parents() list[dftlib.storage.dft_gates.DftGate]

Get parents. :return: List of parents.

remove_parent(element: DftElement) None

Remove parent. :param element: Parent to remove.

set_relevant(relevant: bool = True) None

Set whether the element is relevant (and will not be set to ‘Don’t Care’ for example). :param relevant: Whether the element is relevant.