chen.llin
3 天以前 0a4438e34d8f726b9cf6251a5b447883b0b8da36
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package com.zy.core.properties;
 
import com.zy.core.Slave;
import com.zy.core.model.CrnSlave;
import com.zy.core.model.DevpSlave;
import com.zy.core.model.LedSlave;
import com.zy.core.model.RgvSlave;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
 
import java.util.ArrayList;
import java.util.List;
 
/**
 * Created by vincent on 2020/8/4
 *
 */
 
/**
 * 该类整个就是一个通过配置文件来实体化对象类
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "wcs-slave")
public class SlaveProperties {
 
    private boolean doubleDeep;
 
    private List<Integer> doubleLocs = new ArrayList<>();
 
    private int groupCount;
 
    /**
     * 检查堆垛机出库站状态
     * true: 检查出库站状态(默认值)
     * false: 不检查,默认出库站可用
     */
    private boolean checkOutStationStatus = true;
 
    private List<CrnSlave> crn = new ArrayList<>();
 
    private List<DevpSlave> devp = new ArrayList<>();
 
    private List<Slave> barcode = new ArrayList<>();
 
    private List<LedSlave> led = new ArrayList<>();
 
    private List<Slave> scale = new ArrayList<>();
 
    private List<Slave> car = new ArrayList<>();
 
    private List<RgvSlave> rgv = new ArrayList<>();
 
}