CADETProcess.dataStructure.cache.cached_property_if_locked

CADETProcess.dataStructure.cache.cached_property_if_locked#

class CADETProcess.dataStructure.cache.cached_property_if_locked(fget=None, fset=None, fdel=None, doc=None)[source]#

Bases: property

A property that caches its value if the instance is locked.

This property extends the built-in property to cache its value when the instance is locked. The cached value is stored in the instance’s cached_properties dictionary.

property name: str#

str: name of the property.