Refactor DistibutionAlgorithm to segregate different algorithms #415
Labels
part:power-management
Affects the management of battery power and distribution
type:enhancement
New feature or enhancement visitble to users
Milestone
What's needed?
There is a need to differentiate between two types of algorithms currently present in the
DistributionAlgorithm
implementation. This distinction is necessary to prevent confusion and improve clarity.Proposed solution
To address this issue, the following improvements can be implemented:
DistributionAlgorithm
into an abstract base class.SoCBalancingAlgorithm
andBlindDivisionAlgorithm
andBlindAverageAlgorithm
(name to be defined).Additionally, it is suggested to reorganize the power package hierarchy by adding another level. This would result in classes such as
power.distribution.Algorithm
,power.distribution.SoCBalancingAlgorithm
, etc. This restructure enables convenient usage likefrom ...power import distribution, distribution.SoCBalancingAlgorithm
.Additional context
For more detailed context, please refer to the initial discussion at #365 (comment)
The text was updated successfully, but these errors were encountered: