| | |
| | | package com.mes.device.vo; |
| | | |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Builder; |
| | | import lombok.Data; |
| | |
| | | @Builder |
| | | @NoArgsConstructor |
| | | @AllArgsConstructor |
| | | @Schema(name = "DeviceControlProfile", description = "设备控制参数配置") |
| | | @ApiModel(value = "DeviceControlProfile", description = "设备控制参数配置") |
| | | public class DeviceControlProfile implements Serializable { |
| | | |
| | | @Schema(description = "节拍/线速度(mm/s)") |
| | | @ApiModelProperty(value = "节拍/线速度(mm/s)") |
| | | private Integer lineSpeed; |
| | | |
| | | @Schema(description = "玻璃长度(mm)") |
| | | @ApiModelProperty(value = "玻璃长度(mm)") |
| | | private Integer glassLength; |
| | | |
| | | @Schema(description = "缓存数量/槽位数量") |
| | | @ApiModelProperty(value = "缓存数量/槽位数量") |
| | | private Integer bufferCount; |
| | | |
| | | @Schema(description = "是否自动触发PLC请求") |
| | | @ApiModelProperty(value = "是否自动触发PLC请求") |
| | | private Boolean autoRequest; |
| | | |
| | | @Schema(description = "PLC请求字段名", defaultValue = "plcRequest") |
| | | @ApiModelProperty(value = "PLC请求字段名") |
| | | private String requestField = "plcRequest"; |
| | | |
| | | @Schema(description = "进片位置字段名", defaultValue = "inPosition") |
| | | @ApiModelProperty(value = "进片位置字段名") |
| | | private String positionField = "inPosition"; |
| | | |
| | | @Schema(description = "玻璃数量字段名", defaultValue = "plcGlassCount") |
| | | @ApiModelProperty(value = "玻璃数量字段名") |
| | | private String glassCountField = "plcGlassCount"; |
| | | |
| | | @Schema(description = "玻璃ID槽位字段定义") |
| | | @ApiModelProperty(value = "玻璃ID槽位字段定义") |
| | | private List<GlassSlot> glassSlots; |
| | | |
| | | @Schema(description = "位置映射,如:{ \"station1\":1 }") |
| | | @ApiModelProperty(value = "位置映射,如:{ \"station1\":1 }") |
| | | private Map<String, Integer> positionMappings; |
| | | |
| | | @Data |
| | | @NoArgsConstructor |
| | | @AllArgsConstructor |
| | | @Builder |
| | | @Schema(name = "GlassSlot", description = "玻璃ID槽位") |
| | | @ApiModel(value = "GlassSlot", description = "玻璃ID槽位") |
| | | public static class GlassSlot implements Serializable { |
| | | @Schema(description = "槽位序号,从1开始") |
| | | @ApiModelProperty(value = "槽位序号,从1开始") |
| | | private Integer order; |
| | | |
| | | @Schema(description = "PLC字段名,例如 plcGlassId1") |
| | | @ApiModelProperty(value = "PLC字段名,例如 plcGlassId1") |
| | | private String field; |
| | | |
| | | @Schema(description = "字段长度,字符串长度等") |
| | | @ApiModelProperty(value = "字段长度,字符串长度等") |
| | | private Integer length; |
| | | |
| | | @Schema(description = "槽位描述") |
| | | @ApiModelProperty(value = "槽位描述") |
| | | private String description; |
| | | } |
| | | } |