Equipment.java

/*
 *        @ Copyright 2001 FA Software;
 *        All right reserved. No part of this program may be reproduced or
 *        transmitted in any form or by any means, electronic or
 *        mechanical, including photocopying, recording, or by any
 *        information storage or retrieval system without written
 *        permission from FA Software, except for inclusion of brief
 *        quotations in a review.
 */
package com.mycim.valueobject.ems;

import com.mycim.valueobject.wetbatch.WetBatchBean;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Equipment extends Entity {

    /**
     *
     */
    private static final long serialVersionUID = -562750748079120491L;

    // --------------------------------------------------------- Instance Variables
    private String controlingStationId;

    private Long controlingStationRrn;

    private String batchingRule;

    private String dispatchingRule;

    // private Long alarmRrn;
    private String alarmId;

    private Double speedFactor;

    private Long transportTime;

    private String processingBatchType;

    private Long processingBatchSizeMin;

    private Long processingBatchSizeMax;

    private Long processingBatchSizeAvg;

    private String traceFileDir;

    private String recipeFileDir;

    private String dynamicBatchFlag;

    private Long jobBuffer;

    private Long numberOfRunningJobs;

    private Long concurrentJobSize;

    private String currentSetupId;

    private String nextSetupId;

    private Long processEngineerRrn;

    private String processEngineerId;

    private String equipmentModelId;

    private Long equipmentModelRrn;

    private String costJobSize;

    private String costLotSize;


    // 加工后污染等级
    private String moveOutPollutionLevel;

    // 是否开启可接受污染等级
    //    private String            isPlOpen;
    // 是否开启加工后污染等级
    private String isMoveOutPlOpen;

    private String needReticleFlag;

    private Long facilityRrn;

    // entity表的 diff_flag字段
    private String diffFlag;

    private String eqpGroupId;

    private String sorterFlag;

    private String wetFlag;

    private Map<String, List<String>> wetMap = new HashMap<>();

    public String getSorterFlag() {
        return sorterFlag;
    }

    public void setSorterFlag(String sorterFlag) {
        this.sorterFlag = sorterFlag;
    }

    // ned
    // private String equipmentModel; holly modify 2008-06-25
    // --------------------------------------------------------- Constructors
    public Equipment() {
    }

    public Equipment(String instanceId, String namedSpace, String object) {
        super(instanceId, namedSpace, object);
    }

    // --------------------------------------------------------- Properties
    public String getControlingStationId() {
        return this.controlingStationId;
    }

    public void setControlingStationId(String controlingStationId) {
        this.controlingStationId = controlingStationId;
    }

    public Long getControlingStationRrn() {
        return this.controlingStationRrn;
    }

    public void setControlingStationRrn(Long controlingStationRrn) {
        this.controlingStationRrn = controlingStationRrn;
    }

    public String getBatchingRule() {
        return this.batchingRule;
    }

    public void setBatchingRule(String batchingRule) {
        this.batchingRule = batchingRule;
    }

    public String getDispatchingRule() {
        return this.dispatchingRule;
    }

    public void setDispatchingRule(String dispatchingRule) {
        this.dispatchingRule = dispatchingRule;
    }

    /*
     * public Long getAlarmRrn(){ return this.alarmRrn; }
     */
    /*
     * public void setAlarmRrn(Long alarmRrn){ this.alarmRrn = alarmRrn; }
     */
    public String getAlarmId() {
        return this.alarmId;
    }

    public void setAlarmId(String alarmId) {
        this.alarmId = alarmId;
    }

    public Double getSpeedFactor() {
        return this.speedFactor;
    }

    public void setSpeedFactor(Double speedFactor) {
        this.speedFactor = speedFactor;
    }

    public Long getTransportTime() {
        return this.transportTime;
    }

    public void setTransportTime(Long transportTime) {
        this.transportTime = transportTime;
    }

    public String getProcessingBatchType() {
        return this.processingBatchType;
    }

    public void setProcessingBatchType(String processingBatchType) {
        this.processingBatchType = processingBatchType;
    }

    public Long getProcessingBatchSizeMin() {
        return this.processingBatchSizeMin;
    }

    public void setProcessingBatchSizeMin(Long processingBatchSizeMin) {
        this.processingBatchSizeMin = processingBatchSizeMin;
    }

    public Long getProcessingBatchSizeMax() {
        return this.processingBatchSizeMax;
    }

    public void setProcessingBatchSizeMax(Long processingBatchSizeMax) {
        this.processingBatchSizeMax = processingBatchSizeMax;
    }

    public Long getProcessingBatchSizeAvg() {
        return this.processingBatchSizeAvg;
    }

    public void setProcessingBatchSizeAvg(Long processingBatchSizeAvg) {
        this.processingBatchSizeAvg = processingBatchSizeAvg;
    }

    public String getTraceFileDir() {
        return this.traceFileDir;
    }

    public void setTraceFileDir(String traceFileDir) {
        this.traceFileDir = traceFileDir;
    }

    public String getRecipeFileDir() {
        return this.recipeFileDir;
    }

    public void setRecipeFileDir(String recipeFileDir) {
        this.recipeFileDir = recipeFileDir;
    }

    public String getDynamicBatchFlag() {
        return this.dynamicBatchFlag;
    }

    public void setDynamicBatchFlag(String dynamicBatchFlag) {
        this.dynamicBatchFlag = dynamicBatchFlag;
    }

    public Long getJobBuffer() {
        return this.jobBuffer;
    }

    public void setJobBuffer(Long jobBuffer) {
        this.jobBuffer = jobBuffer;
    }

    public Long getNumberOfRunningJobs() {
        return this.numberOfRunningJobs;
    }

    public void setNumberOfRunningJobs(Long numberOfRunningJobs) {
        this.numberOfRunningJobs = numberOfRunningJobs;
    }

    public Long getConcurrentJobSize() {
        return this.concurrentJobSize;
    }

    public void setConcurrentJobSize(Long concurrentJobSize) {
        this.concurrentJobSize = concurrentJobSize;
    }

    public String getCurrentSetupId() {
        return this.currentSetupId;
    }

    public void setCurrentSetupId(String currentSetupId) {
        this.currentSetupId = currentSetupId;
    }

    public String getNextSetupId() {
        return this.nextSetupId;
    }

    public void setNextSetupId(String nextSetupId) {
        this.nextSetupId = nextSetupId;
    }

    public Long getProcessEngineerRrn() {
        return this.processEngineerRrn;
    }

    public void setProcessEngineerRrn(Long processEngineerRrn) {
        this.processEngineerRrn = processEngineerRrn;
    }

    public String getProcessEngineerId() {
        return this.processEngineerId;
    }

    public void setProcessEngineerId(String processEngineerId) {
        this.processEngineerId = processEngineerId;
    }

    public String getEquipmentModelId() {
        return this.equipmentModelId;
    }

    public void setEquipmentModelId(String equipmentModelId) {
        this.equipmentModelId = equipmentModelId;
    }

    public Long getEquipmentModelRrn() {
        return this.equipmentModelRrn;
    }

    public void setEquipmentModelRrn(Long equipmentModelRrn) {
        this.equipmentModelRrn = equipmentModelRrn;
    }

    public String getCostJobSize() {
        return this.costJobSize;
    }

    public void setCostJobSize(String costJobSize) {
        this.costJobSize = costJobSize;
    }

    public String getCostLotSize() {
        return this.costLotSize;
    }

    public void setCostLotSize(String costLotSize) {
        this.costLotSize = costLotSize;
    }

    /**
     * @return the moveOutPollutionLevel
     */
    public String getMoveOutPollutionLevel() {
        return moveOutPollutionLevel;
    }

    /**
     * @param moveOutPollutionLevel the moveOutPollutionLevel to set
     */
    public void setMoveOutPollutionLevel(String moveOutPollutionLevel) {
        this.moveOutPollutionLevel = moveOutPollutionLevel;
    }

    //    /**
    //     * @return the isPlOpen
    //     */
    //    public String getIsPlOpen() {
    //        return isPlOpen;
    //    }
    //
    //    /**
    //     * @param isPlOpen the isPlOpen to set
    //     */
    //    public void setIsPlOpen(String isPlOpen) {
    //        this.isPlOpen = isPlOpen;
    //    }

    /**
     * @return the isMoveOutPlOpen
     */
    public String getIsMoveOutPlOpen() {
        return isMoveOutPlOpen;
    }

    /**
     * @param isMoveOutPlOpen the isMoveOutPlOpen to set
     */
    public void setIsMoveOutPlOpen(String isMoveOutPlOpen) {
        this.isMoveOutPlOpen = isMoveOutPlOpen;
    }

    public String getNeedReticleFlag() {
        return needReticleFlag;
    }

    public void setNeedReticleFlag(String needReticleFlag) {
        this.needReticleFlag = needReticleFlag;
    }

    @Override
    public Long getFacilityRrn() {
        return facilityRrn;
    }

    @Override
    public void setFacilityRrn(Long facilityRrn) {
        this.facilityRrn = facilityRrn;
    }

    public String getDiffFlag() {
        return diffFlag;
    }

    public void setDiffFlag(String diffFlag) {
        this.diffFlag = diffFlag;
    }
    /*
     * public String getEquipmentModel() { return equipmentModel; } public void setEquipmentModel(String
     * equipmentModel)
     * { this.equipmentModel = equipmentModel; } holly modify 2008-06-25
     */

    public String getEqpGroupId() {
        return eqpGroupId;
    }

    public void setEqpGroupId(String eqpGroupId) {
        this.eqpGroupId = eqpGroupId;
    }

    public String getWetFlag() {
        return wetFlag;
    }

    public void setWetFlag(String wetFlag) {
        this.wetFlag = wetFlag;
    }

    public Map<String, List<String>> getWetMap() {
        return wetMap;
    }

    public void putWetMapList(List<WetBatchBean> value) {
        if (value != null && !value.isEmpty()){
            for (WetBatchBean wbb:value){
                String key = wbb.getPreEquipmentGroupId() + "," + wbb.getPreRecipeId() + "|" + wbb.getPostEquipmentGroupId() + "," + wbb.getPostRecipeId();
                List<String> productIdList = this.wetMap.getOrDefault(key, new ArrayList<>());
                productIdList.add(wbb.getProductId());
                this.wetMap.put(key, productIdList);
            }
        }
    }

}

/*
 * Modification Log Log No : Name : Modified Date: Description :
 */