akkudoktoreos.core.coreabc.DevicesMixin

class akkudoktoreos.core.coreabc.DevicesMixin

Bases: object

Mixin class for managing EOS devices simulation data.

This class serves as a foundational component for EOS-related classes requiring access to global devices simulation data. It provides a devices property that dynamically retrieves the devices instance, ensuring up-to-date access to devices simulation results.

Usage:

Subclass this base class to gain access to the devices attribute, which retrieves the global devices instance lazily to avoid import-time circular dependencies.

devices

Property to access the global EOS devices simulation data.

Type:

Devices

Example

```python class MyOptimizationClass(DevicesMixin):

def analyze_mydevicesimulation(self):

device_simulation_data = self.devices.mydevicesresult # Perform analysis

```

__init__()

Methods

__init__()

Attributes

devices

Convenience method/ attribute to retrieve the EOS devices simulation data.

property devices: Any

Convenience method/ attribute to retrieve the EOS devices simulation data.

Returns:

The devices simulation.

Return type:

Devices