Integrate external optmizer (experimental) (#22495)
This commit is contained in:
parent
3cb810965a
commit
b5a8a2d3c6
32 changed files with 2325 additions and 54 deletions
|
|
@ -197,7 +197,7 @@ type API interface {
|
|||
IsFastChargingActive() bool
|
||||
// GetRemainingDuration is the estimated remaining charging duration
|
||||
GetRemainingDuration() time.Duration
|
||||
// GetRemainingEnergy is the remaining charge energy in Wh
|
||||
// GetRemainingEnergy is the remaining charge energy in kWh
|
||||
GetRemainingEnergy() float64
|
||||
|
||||
//
|
||||
|
|
@ -210,4 +210,6 @@ type API interface {
|
|||
SetVehicle(vehicle api.Vehicle)
|
||||
// StartVehicleDetection allows triggering vehicle detection for debugging purposes
|
||||
StartVehicleDetection()
|
||||
// GetSoc returns the last vehicle or charger soc in %
|
||||
GetSoc() float64
|
||||
}
|
||||
|
|
|
|||
|
|
@ -562,6 +562,20 @@ func (mr *MockAPIMockRecorder) GetSmartFeedInPriorityLimit() *gomock.Call {
|
|||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSmartFeedInPriorityLimit", reflect.TypeOf((*MockAPI)(nil).GetSmartFeedInPriorityLimit))
|
||||
}
|
||||
|
||||
// GetSoc mocks base method.
|
||||
func (m *MockAPI) GetSoc() float64 {
|
||||
m.ctrl.T.Helper()
|
||||
ret := m.ctrl.Call(m, "GetSoc")
|
||||
ret0, _ := ret[0].(float64)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// GetSoc indicates an expected call of GetSoc.
|
||||
func (mr *MockAPIMockRecorder) GetSoc() *gomock.Call {
|
||||
mr.mock.ctrl.T.Helper()
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSoc", reflect.TypeOf((*MockAPI)(nil).GetSoc))
|
||||
}
|
||||
|
||||
// GetSocConfig mocks base method.
|
||||
func (m *MockAPI) GetSocConfig() SocConfig {
|
||||
m.ctrl.T.Helper()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue