using WIDESEAWCS_Core.BaseRepository;
using WIDESEAWCS_Model.Models;
namespace WIDESEAWCS_ITaskInfoRepository
{
///
/// 假电芯位置仓储接口
///
public interface IFakeBatteryPositionRepository : IRepository
{
///
/// 获取下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);
}
}