CADETProcess.dataStructure.cache.CachedPropertiesMixin#
- class CADETProcess.dataStructure.cache.CachedPropertiesMixin(_lock)[source]#
Mixin class for caching properties in a structured object.
This class is designed to be used as a mixin in conjunction with other classes inheriting from Structure. It provides functionality for caching properties and managing a lock state to control the caching behavior.
- Attributes:
aggregated_parametersdict: Aggregated parameters of the instance.
lockbool: If True, properties are cached. False otherwise.
missing_parameterslist: Parameters that are required but not set.
parametersdict: Parameters of the instance.
polynomial_parametersdict: Polynomial parameters of the instance.
required_parameterslist: Parameters that have no default value.
sized_parametersdict: Sized parameters of the instance.
Methods
Verify if all required parameters are set.
Notes
To prevent the return of outdated state, the cache is cleared whenever the lock state is changed.