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 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") //获取配置文件中的属性定义并绑定到Java Bean
|
public class SlaveProperties {
|
|
private boolean doubleDeep; //是否双伸
|
|
private List<Integer> doubleLocs = new ArrayList<>(); //双伸排号
|
|
private int groupCount; //1个堆垛机负责的排数
|
|
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<>(); //小车
|
|
}
|