yeg
2026-09-09 f38ca8a9f8454ac2eebdc268c89efd0e436b3cf2
1
2
3
4
5
6
7
8
9
10
package com.battery.device.api;
 
/** 将已保存的实际工步类型解释为充电、放电、静置或未知,不依据测量值猜测。 */
public interface StepDirectionResolver
{
    enum Direction { CHARGE, DISCHARGE, REST, UNKNOWN }
 
    /** 返回有明确协议依据的方向;未定义或混合类型保持未知。 */
    Direction resolve(String stepType);
}