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

Method EffectivePlanStrategy

core/loadpoint_effective.go:254–258  ·  view source on GitHub ↗

EffectivePlanStrategy returns the effective plan strategy

()

Source from the content-addressed store, hash-verified

252
253// EffectivePlanStrategy returns the effective plan strategy
254func (lp *Loadpoint) EffectivePlanStrategy() api.PlanStrategy {
255 lp.RLock()
256 defer lp.RUnlock()
257 return lp.getEffectivePlanStrategy()
258}
259
260func (lp *Loadpoint) getEffectivePlanStrategy() api.PlanStrategy {
261 if v := lp.GetVehicle(); v != nil {

Callers 1

Calls 3

RLockMethod · 0.95
RUnlockMethod · 0.95

Tested by

no test coverage detected