自动化立体仓库 - WCS系统
#
luxiaotao1123
2022-07-30 6511f7bad1c4f3cf342a21c1d68c5deb0e4ee80f
src/main/java/com/zy/core/properties/SlaveProperties.java
@@ -3,6 +3,8 @@
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.SocketSlave;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
@@ -12,11 +14,22 @@
/**
 * 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;
    private List<CrnSlave> crn = new ArrayList<>();
@@ -24,8 +37,11 @@
    private List<Slave> barcode = new ArrayList<>();
    private List<Slave> led = new ArrayList<>();
    private List<LedSlave> led = new ArrayList<>();
    private List<Slave> scale = new ArrayList<>();
    private List<Slave> car = new ArrayList<>();
    private List<SocketSlave> socket = new ArrayList<>();
}