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

Method EffectivePlanTime

core/loadpoint_effective.go:130–140  ·  view source on GitHub ↗

EffectivePlanTime returns the effective plan time

()

Source from the content-addressed store, hash-verified

128
129// EffectivePlanTime returns the effective plan time
130func (lp *Loadpoint) EffectivePlanTime() time.Time {
131 lp.RLock()
132 defer lp.RUnlock()
133 if lp.socBasedPlanning() {
134 ts, _, _ := lp.nextVehiclePlan()
135 return ts
136 }
137
138 ts, _ := lp.getPlanEnergy()
139 return ts
140}
141
142// SocBasedPlanning returns true if soc based planning is enabled
143func (lp *Loadpoint) SocBasedPlanning() bool {

Callers 2

plannerActiveMethod · 0.95

Calls 5

RLockMethod · 0.95
RUnlockMethod · 0.95
socBasedPlanningMethod · 0.95
nextVehiclePlanMethod · 0.95
getPlanEnergyMethod · 0.95

Tested by

no test coverage detected