PmType.java
package com.mycim.valueobject.ems.pilot;
import com.mycim.valueobject.ems.pilot.dto.PiLotSetupDTO;
import java.io.Serializable;
/**
* @author songpy
* @version 1.0.0
* @date 2021/8/27
**/
public class PmType implements Serializable {
private static final long serialVersionUID = -2525323546162933000L;
private Integer bufferTime;
private String constraintRcpId;
private Long constraintRcpRrn = 0L;
public PmType(Integer bufferTime, String constraintRcp) {
this.bufferTime = bufferTime;
this.constraintRcpId = constraintRcp;
}
public PmType(PiLotSetupDTO setupDTO) {
this.bufferTime = setupDTO.getBufferTime();
this.constraintRcpId = setupDTO.getPmConstraintRecipe();
}
public PmType() {
}
public Integer getBufferTime() {
return bufferTime;
}
public void setBufferTime(Integer bufferTime) {
this.bufferTime = bufferTime;
}
public String getConstraintRcpId() {
return constraintRcpId;
}
public void setConstraintRcpId(String constraintRcpId) {
this.constraintRcpId = constraintRcpId;
}
public Long getConstraintRcpRrn() {
return constraintRcpRrn;
}
public void setConstraintRcpRrn(Long constraintRcpRrn) {
this.constraintRcpRrn = constraintRcpRrn;
}
@Override
public String toString() {
return "PmType{" + "bufferTime=" + bufferTime + ", constraintRcpId='" + constraintRcpId + '\'' +
", constraintRcpRrn=" + constraintRcpRrn + '}';
}
}