using WIDESEAWCS_Core.BaseServices; using WIDESEAWCS_Model.Models; namespace WIDESEAWCS_ITaskInfoService { /// /// 假电芯位置服务接口 /// public interface IFakeBatteryPositionService : IService { /// /// 获取下N个可用的假电芯平面点位 /// /// 需要获取的点位数量 /// 可用点位列表,按PositionIndex升序 List GetNextAvailable(int count); /// /// 重置所有点位为未使用 /// /// 影响的行数 int ResetAll(); /// /// 标记指定点位为已使用 /// /// 点位索引列表 /// 是否成功 bool MarkAsUsed(List positions); /// /// 根据行和列获取点位索引 /// /// 行(1-3) /// 列(1-16) /// 点位索引(1-48),找不到返回null int? GetPositionIndex(int row, int col); /// /// 初始化假电芯点位表(48个点位) /// /// /// 仅当表为空时插入1-48的初始数据。 /// 3行×16列,行优先排列。 /// /// 是否成功 bool InitializeIfEmpty(); } }