5 changed files with 182 additions and 0 deletions
@ -0,0 +1,94 @@ |
|||||
|
/* |
||||
|
* Copyright 2019-2020 Zheng Jie |
||||
|
* |
||||
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
||||
|
* you may not use this file except in compliance with the License. |
||||
|
* You may obtain a copy of the License at |
||||
|
* |
||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
* |
||||
|
* Unless required by applicable law or agreed to in writing, software |
||||
|
* distributed under the License is distributed on an "AS IS" BASIS, |
||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
|
* See the License for the specific language governing permissions and |
||||
|
* limitations under the License. |
||||
|
*/ |
||||
|
package org.nl.modules.common.utils.enums; |
||||
|
|
||||
|
import lombok.AllArgsConstructor; |
||||
|
import lombok.Getter; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* <p> |
||||
|
* 区域对应车辆场景 |
||||
|
* </p> |
||||
|
* @author Liuxy |
||||
|
* @date 2024-10-31 |
||||
|
*/ |
||||
|
@Getter |
||||
|
@AllArgsConstructor |
||||
|
public enum RegionEnum { |
||||
|
|
||||
|
// AB生产区-->C生产区
|
||||
|
AB_C("AB", "C","PS20","Group-001"), |
||||
|
|
||||
|
// AB生产区到-->地面面货架
|
||||
|
AB_DMHJ("AB", "DMHJ","PS20","Group-001"), |
||||
|
|
||||
|
// C生产区-->D生产区
|
||||
|
C_D("C", "D","PS20","Group-001"), |
||||
|
|
||||
|
// D生产区-->地面货架
|
||||
|
D_DMHJ("D", "DMHJ","PS20","Group-001"), |
||||
|
|
||||
|
// 地面货架-->拆盘机
|
||||
|
DMHJ_CPJ("DMHJ", "CPJ","PS20","Group-001"), |
||||
|
|
||||
|
// AB生产区-->地面货架一层
|
||||
|
AB_DMHJ_ONE("AB", "DMHJ","PS30","Group-002"), |
||||
|
|
||||
|
// 地面货架-->AB生产区
|
||||
|
DMHJ_AB("DMHJ", "AB","PS30","Group-002"), |
||||
|
|
||||
|
// AB生产区-->钢平台接驳
|
||||
|
AB_GPTJB("AB", "GPTJB","PS20","Group-001"), |
||||
|
|
||||
|
// 钢平台接驳-->钢平台货架
|
||||
|
GPTJB_GPTHJ("GPTJB", "GPTHJ","PS10","Group-003"), |
||||
|
|
||||
|
// 钢平台货架-->钢平台接驳
|
||||
|
GPTHJ_GPTJB("GPTHJ", "GPTJB","PS10","Group-003"), |
||||
|
|
||||
|
// 钢平台接驳-->AB生产区
|
||||
|
GPTJB_AB("GPTJB", "AB","PS20","Group-001"), |
||||
|
|
||||
|
// 钢平台接驳-->拆盘机
|
||||
|
GPTJB_CPJ("GPTJB", "CPJ","PS20","Group-001"), |
||||
|
|
||||
|
// 包装线-->拆盘机
|
||||
|
BZX_CPJ("BZX", "CPJ","PS15","Group-004"), |
||||
|
; |
||||
|
|
||||
|
// 起点区域
|
||||
|
private final String start_region; |
||||
|
// 终点区域
|
||||
|
private final String end_region; |
||||
|
// 车辆类型
|
||||
|
private final String car_type; |
||||
|
// 下发agv类型
|
||||
|
private final String agv_type; |
||||
|
|
||||
|
public static List<RegionEnum> find(String start_region, String end_region) { |
||||
|
ArrayList<RegionEnum> list = new ArrayList<>(); |
||||
|
for (RegionEnum value : RegionEnum.values()) { |
||||
|
if (start_region.equals(value.getStart_region()) && end_region.equals(value.getEnd_region())) { |
||||
|
list.add(value); |
||||
|
} |
||||
|
} |
||||
|
return list; |
||||
|
} |
||||
|
|
||||
|
} |
Loading…
Reference in new issue