| | |
| | | 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.Collections; |
| | | 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 Collections.emptyList(); |
| | | return taskAllocationService.allocateTasks(agvStatusList, taskList); |
| | | } |
| | | |
| | | @Override |
| | | public PathPlanningService.PathPlanningResult planAllAgvPaths(List<AGVStatus> agvStatusList, boolean flag, List<double[]> constraints) { |
| | | return null; |
| | | public PathPlanningService.PathPlanningResult planAllAgvPaths(List<TaskData> taskList, List<AGVStatus> agvStatusList, boolean flag, List<double[]> constraints) { |
| | | return pathPlanningService.planAllAgvPaths(taskList, agvStatusList, true, null); |
| | | } |
| | | } |