1
zhang
2025-09-11 85392bb7db247c4596d3fbf49c9e00cfd0e76a13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package com.algo.expose.impl;
 
import com.algo.expose.AlgoSupport;
import com.algo.model.AGVStatus;
import com.algo.model.TaskAssignment;
import com.algo.model.TaskData;
import com.algo.service.PathPlanningService;
import com.algo.service.TaskAllocationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
@Service
public class AlgoSupportImpl implements AlgoSupport {
 
 
    @Autowired
    private TaskAllocationService taskAllocationService;
 
    @Autowired
    private PathPlanningService pathPlanningService;
 
 
    @Override
    public List<TaskAssignment> allocateTasks(List<AGVStatus> agvStatusList, List<TaskData> taskList) {
        return taskAllocationService.allocateTasks(agvStatusList, taskList);
    }
 
    @Override
    public PathPlanningService.PathPlanningResult planAllAgvPaths(List<TaskData> taskList, List<AGVStatus> agvStatusList, boolean flag, List<double[]> constraints) {
        return pathPlanningService.planAllAgvPaths(taskList, agvStatusList, true, null);
    }
}