akkudoktoreos.core.coreabc.EnergyManagementSystemMixin
- class akkudoktoreos.core.coreabc.EnergyManagementSystemMixin
Bases:
objectMixin class for managing EOS energy management system.
This class serves as a foundational component for EOS-related classes requiring access to global energy management system. It provides a ems property that dynamically retrieves the energy management system instance, ensuring up-to-date access to energy management system control.
- Usage:
Subclass this base class to gain access to the ems attribute, which retrieves the global EnergyManagementSystem instance lazily to avoid import-time circular dependencies.
- ems
Property to access the global EOS energy management system.
- Type:
EnergyManagementSystem
Example
```python class MyOptimizationClass(EnergyManagementSystemMixin):
- def analyze_myprediction(self):
ems_data = self.ems.the_ems_method() # Perform analysis
- __init__()
Methods
__init__()Attributes
Convenience method/ attribute to retrieve the EOS energy management system.
- property ems: Any
Convenience method/ attribute to retrieve the EOS energy management system.
- Returns:
The energy management system.
- Return type:
EnergyManagementSystem