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