缓存区修改

This commit is contained in:
2021-12-10 10:54:38 +08:00
parent 2f6da2b491
commit d3eac2db10
9 changed files with 115 additions and 6 deletions

View File

@@ -0,0 +1,33 @@
package com.mt.wms.empty.task;
import java.util.List;
/**
* @Author: liguanghao
* @Date: 2021/12/1 16:56
* @Version 1.0
*/
public class TaskDistanceUtils {
/**
*计算各个空闲小车执行此任务的路径长度传入任务起终点返回一个小车ID
*/
public static Long chooseVehicle(String startPoint,String endPoint){
//计算任务起点到终点的距离
//计算空闲小车当前位置到起点的距离
//计算得出总距离最短的小车
return null;
}
/**
* 计算正在执行任务的小车本次任务的剩余路径经过的点位集合
*/
public static List getPointList(){
//获取小车当前位置
//计算小车当前位置到任务起点-任务起点到任务终点的路径点集合
return null;
}
}

View File

@@ -0,0 +1,14 @@
package com.mt.wms.empty.task;
/**
* @Author: liguanghao
* @Date: 2021/12/1 16:38
* @Version 1.0
*/
//计算车辆路径是否冲突的方法,若只有一辆车空闲,计算是否冲突,
// 若两辆车都空闲且路径冲突,离起点近的那辆车计算避让出起点的距离,离终点近的那辆车计算出避让出终点的距离,取小
public class VehicleCollisionUtils {
//获取当前车辆执行任务的路径,与其他正在执行任务的车辆路径对比
//根据点坐标的最大最小值确定任务需要经过的点的集合,再根据车辆自身大小加上安全距离包含的点位
//比较两个集合是否有相同元素
}