Skip to content

Add modules for each component component in frequenz.sdk.microgrid  #118

@ela-kotulska-frequenz

Description

@ela-kotulska-frequenz

What's needed?

Now in frequenz.sdk.microgrid we have modules like: component_errors, component_states, component_type.

Instead of we could have module for each component category. The same as in frequenz-api
It would:

  • Simplify findings features of the component. Now it is not clear what is where.
  • Instead of implementing class BatteryErrorCode it would be possible to implement class ErrorCode in battery submodule and import it as battery.ErrorCode
  • It would be more consistent with the api.

Proposed solution

No response

Use cases

Easier to implement attributes of the component message.
Easier for user to find correct type.
Easier to import code.

Alternatives and workarounds

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    part:microgridAffects the interactions with the microgridresolution:invalidThis doesn't seem rightscope:breaking-changeBreaking change, users will need to update their codestatus:blockedOther issues must be resolved before this can be worked ontype:enhancementNew feature or enhancement visitble to users

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions