Reapply "Optimizer: respect session energy limit when vehicle soc is unknown (#32895)"
This reverts commit fa6f757618.
This commit is contained in:
parent
fa6f757618
commit
d22b67fd18
5 changed files with 84 additions and 11 deletions
|
|
@ -219,6 +219,8 @@ type API interface {
|
|||
GetRemainingDuration() time.Duration
|
||||
// GetRemainingEnergy is the remaining charge energy in kWh
|
||||
GetRemainingEnergy() float64
|
||||
// GetChargedEnergy returns session charge energy in Wh
|
||||
GetChargedEnergy() float64
|
||||
|
||||
//
|
||||
// vehicles
|
||||
|
|
|
|||
|
|
@ -221,6 +221,20 @@ func (mr *MockAPIMockRecorder) GetChargePowerFlexibility(rates any) *gomock.Call
|
|||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetChargePowerFlexibility", reflect.TypeOf((*MockAPI)(nil).GetChargePowerFlexibility), rates)
|
||||
}
|
||||
|
||||
// GetChargedEnergy mocks base method.
|
||||
func (m *MockAPI) GetChargedEnergy() float64 {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "GetChargedEnergy")
|
||||
ret0, _ := ret[0].(float64)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// GetChargedEnergy indicates an expected call of GetChargedEnergy.
|
||||
func (mr *MockAPIMockRecorder) GetChargedEnergy() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetChargedEnergy", reflect.TypeOf((*MockAPI)(nil).GetChargedEnergy))
|
||||
}
|
||||
|
||||
// GetChargerRef mocks base method.
|
||||
func (m *MockAPI) GetChargerRef() string {
|
||||
m.ctrl.T.Helper()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue