SortJobBean.java
package com.mycim.valueobject.sorter;
import com.mycim.framework.utils.lang.StringUtils;
import com.mycim.valueobject.bas.NamedObject;
import com.mycim.valueobject.consts.SorterEnum;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
/**
* @author yibing.liu
* @version 1.0
* @date 2021/06/29
*/
public class SortJobBean extends NamedObject {
private long mainJobRrn;
/**
* 源晶舟的ID
*/
private String sourceCarrierId;
private long sourceCarrierRrn;
/**
* 目标晶舟的ID
*/
private String targetCarrierId;
private long targetCarrierRrn;
/**
* 目标晶舟的ID
*/
private String targetCarrierId2;
private Long targetCarrierRrn2;
private String equipmentId;
private long equipmentRrn;
private long executionRrn;
/**
* 任务状态:CREATE(创建)、FINISH(完成)、CANCEL(取消)
*/
private String status;
private String statusParse;
/**
* 任务类型:EXCHANGE(交换晶舟)、SPLIT(分批)、MERGE(合批)、CREATE_MONITOR(CreateMonitor)
*/
private String jobType;
private String jobTypeParse;
private List<SorterBean> sorterBeans;
public String getJobType() {
return jobType;
}
public void setJobType(String jobType) {
this.jobType = jobType;
}
public List<SorterBean> getSorterBeans() {
return sorterBeans;
}
public void setSorterBeans(List<SorterBean> sorterBeans) {
this.sorterBeans = sorterBeans;
}
public void setSorterBeans(SorterBean sorterBeans) {
this.sorterBeans = new ArrayList<>(Collections.singletonList(sorterBeans));
}
public void setSorterBeans(SorterBean... sorterBeans) {
this.sorterBeans = Arrays.asList(sorterBeans);
}
public long getMainJobRrn() {
return mainJobRrn;
}
public void setMainJobRrn(long mainJobRrn) {
this.mainJobRrn = mainJobRrn;
}
public SortJobBean() {
instanceId = SorterEnum.WorkFlow.AUTO_SORT_WORK_FLOW_ID;
}
public SortJobBean(long jobRrn){
this.mainJobRrn = jobRrn;
}
public SortJobBean(String jobType, String transPerformedBy, List<SorterBean> sorterBeans) {
this.jobType = jobType;
this.transPerformedby = transPerformedBy;
this.sorterBeans = sorterBeans;
}
public SortJobBean(String jobType, String transPerformedBy, SorterBean sorterBeans) {
this.jobType = jobType;
this.transPerformedby = transPerformedBy;
this.sorterBeans = new ArrayList<>(Collections.singletonList(sorterBeans));
}
public String getSourceCarrierId() {
return sourceCarrierId;
}
public void setSourceCarrierId(String sourceCarrierId) {
this.sourceCarrierId = sourceCarrierId;
}
public String getTargetCarrierId() {
return targetCarrierId;
}
public void setTargetCarrierId(String targetCarrierId) {
this.targetCarrierId = targetCarrierId;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;
}
public String getJobTypeParse() {
return jobTypeParse;
}
public void setJobTypeParse(String jobTypeParse) {
this.jobTypeParse = jobTypeParse;
}
public String getStatusParse() {
return statusParse;
}
public void setStatusParse(String statusParse) {
this.statusParse = statusParse;
}
public String getTargetCarrierId2() {
return targetCarrierId2;
}
public void setTargetCarrierId2(String targetCarrierId2) {
this.targetCarrierId2 = targetCarrierId2;
}
public String getEquipmentId() {
return equipmentId;
}
public void setEquipmentId(String equipmentId) {
this.equipmentId = equipmentId;
}
public long getExecutionRrn() {
return executionRrn;
}
public void setExecutionRrn(long executionRrn) {
this.executionRrn = executionRrn;
}
public long getSourceCarrierRrn() {
return sourceCarrierRrn;
}
public void setSourceCarrierRrn(long sourceCarrierRrn) {
this.sourceCarrierRrn = sourceCarrierRrn;
}
public long getTargetCarrierRrn() {
return targetCarrierRrn;
}
public void setTargetCarrierRrn(long targetCarrierRrn) {
this.targetCarrierRrn = targetCarrierRrn;
}
public Long getTargetCarrierRrn2() {
return targetCarrierRrn2;
}
public void setTargetCarrierRrn2(Long targetCarrierRrn2) {
this.targetCarrierRrn2 = targetCarrierRrn2;
}
public boolean isEmpty() {
return StringUtils.isNotBlank(sourceCarrierId);
}
public long getEquipmentRrn() {
return equipmentRrn;
}
public void setEquipmentRrn(long equipmentRrn) {
this.equipmentRrn = equipmentRrn;
}
}