ReticleFamilyContextValue.java

package com.mycim.valueobject.prp;

import com.mycim.framework.utils.lang.StringUtils;
import com.mycim.framework.utils.lang.math.NumberUtils;
import com.mycim.valueobject.consts.ContextNames;

/**
 * 光刻板匹配相关情景值
 *
 * @author Aiden
 * @since 2018年4月26日上午10:06:02
 */
public class ReticleFamilyContextValue extends ContextValue {

    private static final long serialVersionUID = 1L;

    public ReticleFamilyContextValue() {
        this.setContextId(ContextNames.RETICLEFAMILY_CONTEXT);
    }

    /**
     * @param contextRrn context id: {@value ContextNames#RETICLEFAMILY_CONTEXT} RRN
     */
    public ReticleFamilyContextValue(long contextRrn) {
        super(contextRrn);
    }

    /**
     * @return the productRrn
     */
    public Long getProductRrn() {
        return NumberUtils.createLong(StringUtils.trimToNull(this.getContextKey1()));
    }

    /**
     * @param productRrn the productRrn to set
     */
    public void setProductRrn(Long productRrn) {
        this.setContextKey1(StringUtils.toString(productRrn));
    }

    /**
     * @return the processRrn
     */
    public Long getProcessRrn() {
        return NumberUtils.createLong(StringUtils.trimToNull(this.getContextKey2()));
    }

    /**
     * @param processRrn the processRrn to set
     */
    public void setProcessRrn(Long processRrn) {
        this.setContextKey2(StringUtils.toString(processRrn));
    }

    /**
     * @return the routeRrn
     */
    public Long getRouteRrn() {
        return NumberUtils.createLong(StringUtils.trimToNull(this.getContextKey3()));
    }

    /**
     * @param routeRrn the routeRrn to set
     */
    public void setRouteRrn(Long routeRrn) {
        this.setContextKey3(StringUtils.toString(routeRrn));
    }

    /**
     * @return the operationRrn
     */
    public Long getOperationRrn() {
        return NumberUtils.createLong(StringUtils.trimToNull(this.getContextKey4()));
    }

    /**
     * @param operationRrn the operationRrn to set
     */
    public void setOperationRrn(Long operationRrn) {
        this.setContextKey4(StringUtils.toString(operationRrn));
    }

    public String getRouteSeq() {
        return StringUtils.trimToNull(this.getContextKey5());
    }

    public void setRouteSeq(String routeSeq) {
        this.setContextKey5(routeSeq);
    }

    public String getOperationSeq() {
        return StringUtils.trimToNull(this.getContextKey6());
    }

    public void setOperationSeq(String operationSeq) {
        this.setContextKey6(operationSeq);
    }

    public Integer getProcessVersion() {
        return NumberUtils.toInt(StringUtils.trimToNull(this.getContextKey7()));
    }

    public void setProcessVersion(Integer processVersion) {
        this.setContextKey7(StringUtils.toString(processVersion));
    }

    /**
     * @return the productVersion
     */
    public Integer getProductVersion() {
        return NumberUtils.createInteger(StringUtils.trimToNull(this.getContextKey9()));
    }

    /**
     * @param productVersion the productVersion to set
     */
    public void setProductVersion(Integer productVersion) {
        this.setContextKey9(StringUtils.toString(productVersion));
    }

    /**
     * resultValue1
     *
     * @return ReticleFamilyRrn
     */
    public Long getReticleFamilyRrn() {
        return NumberUtils.createLong(StringUtils.trimToNull(this.getResultValue1()));
    }

    /**
     * @param reticleFamilyRrn result value 1
     */
    public void setReticleFamilyRrn(Long reticleFamilyRrn) {
        this.setResultValue1(StringUtils.toString(reticleFamilyRrn));
    }

    public Long getAttributeNameRrn() {
        return NumberUtils.createLong(StringUtils.trimToNull(this.getResultValue2()));
    }

    public void setAttributeNameRrn(Long attributeNameRrn) {
        this.setResultValue2(StringUtils.toString(attributeNameRrn));
    }

}