dftlib.storage.dft_be.BeWeibull¶
- class BeWeibull(element_id: int, name: str, shape: float | str, rate: float | str, position: tuple[float, float])¶
Bases:
DftBe
BE with Weibull distribution.
Methods
check_valid
Compare elements.
Get JSON string.
Get whether the element is a BE.
Get whether the element is dynamic.
Get whether the element is a gate.
Get parents.
Remove parent.
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.