MCPcopy Create free account
hub / github.com/evcc-io/evcc / getEffectivePlanStrategy

Method getEffectivePlanStrategy

core/loadpoint_effective.go:260–268  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

258}
259
260func (lp *Loadpoint) getEffectivePlanStrategy() api.PlanStrategy {
261 if v := lp.GetVehicle(); v != nil {
262 if lp.socBasedPlanning() {
263 return vehicle.Settings(lp.log, v).GetPlanStrategy()
264 }
265 }
266
267 return lp.getPlanStrategy()
268}

Callers 3

setPlanStrategyMethod · 0.95
EffectivePlanStrategyMethod · 0.95
plannerActiveMethod · 0.95

Calls 5

GetVehicleMethod · 0.95
socBasedPlanningMethod · 0.95
getPlanStrategyMethod · 0.95
SettingsFunction · 0.92
GetPlanStrategyMethod · 0.65

Tested by

no test coverage detected