Entity.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.bas.NamedObject;

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

public class Entity extends NamedObject {

    private static final long serialVersionUID = 2273516067590754851L;

    // --------------------------------------------------------- Instance Variables
    private Long allowableEventsRrn;

    private String allowableEventsId;

    private Long maintenanceEngineerRrn;

    private String maintenanceEngineerId;

    private Long QCEngineerRrn;

    private String QCEngineerId;

    private Long PMEngineerRrn;

    private String PMEngineerId;

    private String processUnitFlag;

    private String operationMode;

    private String locationId;

    private Long locationRrn;

    private Long prevLocationRrn;

    private String entityLocation;

    private String entityPrevLocation;

    private Boolean reticleMoveinFlag;                      // 判断reticle是否move in 标准是reticle 位置是在设备还是货架

    private Long parentEntityRrn;

    private String parentEntityId;

    private Long lastEventRrn;

    private String attachmentFlag;

    private Long lastTransRrn;

    private Long executionRrn;

    private String keyEntityFlag;

    private String chamberType;

    // private Long processEngineerRrn;
    // private String processEngineerId;
    private String availability;

    private Collection documents = new ArrayList();

    // 自腔设备
    private Collection childChambers = new ArrayList();

    private Collection constraints = new ArrayList();

    private Collection entitycounters = new ArrayList();

    private Collection pmschedules = new ArrayList();

    private Collection entitystatuss = new ArrayList();

    private Collection reservations = new ArrayList();

    // add by steven
    private Long reticleFamilyRrn = new Long(0);

    private Long productRrn = new Long(0);

    private String maskInspectionId;

    private String version;

    private String grade;

    private String status;

    private String maskHouse;

    private String maskHouseStatus;

    private String stpType;

    private String maskType;

    private String magnification;

    private Long createUserRrn = new Long(0);

    private String createDateTime;

    private String maskSize;

    private String pellicle;

    private String reticleFamilyId;

    private String product;

    private String createUser;

    private String reticleFamily;

    private String equipmentLocation;

    private String equipmentOwner;

    private String equipmentWph;

    // add by fan
    private String equipmentCapability;

    private String equipmentModel;
    // end

    /**
     * 污染等级
     */
    private String pollutionLevel;

    private String childChamberType;

    // 光罩最大使用次数
    private Integer maxUseTimes;

    // 光罩当前使用次数
    private Integer currentUseTimes;

    // 光罩 的pdflag
    private String PDFlag;

    // 光罩的加工时间
    private String processTime;

    // 光罩上次pd 的时间
    private String pdTime;

    private String overdueTime;

    private Collection entitieGroups;

    private String currentStatus;

    private String moveNextPollutionLevels;

    private String isPlOpen;

    private String isMoveNeitPlOpen;

    /**
     * PM HOLD
     */
    private boolean pmHoldFlag;                             // entity_ext-->attribute_data2

    private String defaultEquipConstrain;

    // 是否是腔体设备
    private String isChamberEquip;

    private String chamberMode;

    private String attributeData1;

    private String attributeData2;

    private String attributeData3;

    private String attributeData4;

    private String attributeData5;

    private String attributeData6;

    private String reticleType;

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

    // --------------------------------------------------------- Constructors
    public Entity() {
    }

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

    public Entity(long rrn) {
        super(rrn);
    }

    public String getEntityPrevLocation() {
        return entityPrevLocation;
    }

    public void setEntityPrevLocation(String entityPrevLocation) {
        this.entityPrevLocation = entityPrevLocation;
    }

    public Collection getEntitieGroups() {
        if (entitieGroups == null) {
            entitieGroups = new ArrayList();
        }

        return entitieGroups;
    }

    public void setEntitieGroups(Collection entitieGroups) {
        this.entitieGroups = entitieGroups;
    }

    public String getOverdueTime() {
        return overdueTime;
    }

    public void setOverdueTime(String overdueTime) {
        this.overdueTime = overdueTime;
    }

    public Integer getMaxUseTimes() {
        return maxUseTimes;
    }

    public void setMaxUseTimes(Integer maxUseTimes) {
        this.maxUseTimes = maxUseTimes;
    }

    public Integer getCurrentUseTimes() {
        return currentUseTimes;
    }

    public void setCurrentUseTimes(Integer currentUseTimes) {
        this.currentUseTimes = currentUseTimes;
    }

    public String getPDFlag() {
        return PDFlag;
    }

    public void setPDFlag(String pDFlag) {
        PDFlag = pDFlag;
    }

    public String getProcessTime() {
        return processTime;
    }

    public void setProcessTime(String processTime) {
        this.processTime = processTime;
    }

    public String getPdTime() {
        return pdTime;
    }

    public void setPdTime(String pdTime) {
        this.pdTime = pdTime;
    }

    public String getChildChamberType() {
        return childChamberType;
    }

    public void setChildChamberType(String childChamberType) {
        this.childChamberType = childChamberType;
    }

    public String getIsChamberEquip() {
        return isChamberEquip;
    }

    public void setIsChamberEquip(String isChamberEquip) {
        this.isChamberEquip = isChamberEquip;
    }

    public String getChamberType() {
        return chamberType;
    }

    public void setChamberType(String chamberType) {
        this.chamberType = chamberType;
    }

    // --------------------------------------------------------- Properties
    public String getEquipmentWph() {
        return this.equipmentWph;
    }

    public void setEquipmentWph(String equipmentWph) {
        this.equipmentWph = equipmentWph;
    }

    public String getEquipmentOwner() {
        return this.equipmentOwner;
    }

    public void setEquipmentOwner(String equipmentOwner) {
        this.equipmentOwner = equipmentOwner;
    }

    public String getEquipmentLocation() {
        return this.equipmentLocation;
    }

    public void setEquipmentLocation(String equipmentLocation) {
        this.equipmentLocation = equipmentLocation;
    }

    public String getReticleFamily() {
        return this.reticleFamily;
    }

    public void setReticleFamily(String reticleFamily) {
        this.reticleFamily = reticleFamily;
    }

    public String getCreateUser() {
        return this.createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getProduct() {
        return this.product;
    }

    public void setProduct(String product) {
        this.product = product;
    }

    public String getReticleFamilyId() {
        return this.reticleFamilyId;
    }

    public void setReticleFamilyId(String reticleFamilyId) {
        this.reticleFamilyId = reticleFamilyId;
    }

    public String getPellicle() {
        return this.pellicle;
    }

    public void setPellicle(String pellicle) {
        this.pellicle = pellicle;
    }

    public String getMaskSize() {
        return this.maskSize;
    }

    public void setMaskSize(String maskSize) {
        this.maskSize = maskSize;
    }

    public String getCreateDateTime() {
        return this.createDateTime;
    }

    public void setCreateDateTime(String createDateTime) {
        this.createDateTime = createDateTime;
    }

    public Long getCreateUserRrn() {
        return this.createUserRrn;
    }

    public void setCreateUserRrn(Long createUserRrn) {
        this.createUserRrn = createUserRrn;
    }

    public String getMagnification() {
        return this.magnification;
    }

    public void setMagnification(String magnification) {
        this.magnification = magnification;
    }

    public String getMaskType() {
        return this.maskType;
    }

    public void setMaskType(String maskType) {
        this.maskType = maskType;
    }

    public String getStpType() {
        return this.stpType;
    }

    public void setStpType(String stpType) {
        this.stpType = stpType;
    }

    public String getMaskHouseStatus() {
        return this.maskHouseStatus;
    }

    public void setMaskHouseStatus(String maskHouseStatus) {
        this.maskHouseStatus = maskHouseStatus;
    }

    public String getMaskHouse() {
        return this.maskHouse;
    }

    public void setMaskHouse(String maskHouse) {
        this.maskHouse = maskHouse;
    }

    public String getStatus() {
        return this.status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getGrade() {
        return this.grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getVersion() {
        return this.version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getMaskInspectionId() {
        return this.maskInspectionId;
    }

    public void setMaskInspectionId(String maskInspectionId) {
        this.maskInspectionId = maskInspectionId;
    }

    public Long getProductRrn() {
        return this.productRrn;
    }

    public void setProductRrn(Long productRrn) {
        this.productRrn = productRrn;
    }

    public Long getReticleFamilyRrn() {
        return this.reticleFamilyRrn;
    }

    public void setReticleFamilyRrn(Long reticleFamilyRrn) {
        this.reticleFamilyRrn = reticleFamilyRrn;
    }

    public Long getAllowableEventsRrn() {
        return this.allowableEventsRrn;
    }

    public void setAllowableEventsRrn(Long allowableEventsRrn) {
        this.allowableEventsRrn = allowableEventsRrn;
    }

    public String getAllowableEventsId() {
        return this.allowableEventsId;
    }

    public void setAllowableEventsId(String allowableEventsId) {
        this.allowableEventsId = allowableEventsId;
    }

    public Long getMaintenanceEngineerRrn() {
        return this.maintenanceEngineerRrn;
    }

    public void setMaintenanceEngineerRrn(Long maintenanceEngineerRrn) {
        this.maintenanceEngineerRrn = maintenanceEngineerRrn;
    }

    public String getMaintenanceEngineerId() {
        return this.maintenanceEngineerId;
    }

    public void setMaintenanceEngineerId(String maintenanceEngineerId) {
        this.maintenanceEngineerId = maintenanceEngineerId;
    }

    public Long getQCEngineerRrn() {
        return this.QCEngineerRrn;
    }

    public void setQCEngineerRrn(Long QCEngineerRrn) {
        this.QCEngineerRrn = QCEngineerRrn;
    }

    public String getQCEngineerId() {
        return this.QCEngineerId;
    }

    public void setQCEngineerId(String QCEngineerId) {
        this.QCEngineerId = QCEngineerId;
    }

    public Long getPMEngineerRrn() {
        return this.PMEngineerRrn;
    }

    public void setPMEngineerRrn(Long PMEngineerRrn) {
        this.PMEngineerRrn = PMEngineerRrn;
    }

    public String getPMEngineerId() {
        return this.PMEngineerId;
    }

    public void setPMEngineerId(String PMEngineerId) {
        this.PMEngineerId = PMEngineerId;
    }

    public String getProcessUnitFlag() {
        return this.processUnitFlag;
    }

    public void setProcessUnitFlag(String processUnitFlag) {
        this.processUnitFlag = processUnitFlag;
    }

    public String getOperationMode() {
        return this.operationMode;
    }

    public void setOperationMode(String operationMode) {
        this.operationMode = operationMode;
    }

    public Long getLocationRrn() {
        return this.locationRrn;
    }

    public void setLocationRrn(Long locationRrn) {
        this.locationRrn = locationRrn;
    }

    public Long getPrevLocationRrn() {
        return prevLocationRrn;
    }

    public void setPrevLocationRrn(Long prevLocationRrn) {
        this.prevLocationRrn = prevLocationRrn;
    }

    public String getEntityLocation() {
        return this.entityLocation;
    }

    public void setEntityLocation(String entityLocation) {
        this.entityLocation = entityLocation;
    }

    public Boolean getReticleMoveinFlag() {
        return reticleMoveinFlag;
    }

    public void setReticleMoveinFlag(Boolean reticleMoveinFlag) {
        this.reticleMoveinFlag = reticleMoveinFlag;
    }

    public Long getParentEntityRrn() {
        return this.parentEntityRrn;
    }

    public void setParentEntityRrn(Long parentEntityRrn) {
        this.parentEntityRrn = parentEntityRrn;
    }

    public String getParentEntityId() {
        return this.parentEntityId;
    }

    public void setParentEntityId(String parentEntityId) {
        this.parentEntityId = parentEntityId;
    }

    public Long getLastEventRrn() {
        return this.lastEventRrn;
    }

    public void setLastEventRrn(Long lastEventRrn) {
        this.lastEventRrn = lastEventRrn;
    }

    public String getAttachmentFlag() {
        return this.attachmentFlag;
    }

    public void setAttachmentFlag(String attachmentFlag) {
        this.attachmentFlag = attachmentFlag;
    }

    public Long getLastTransRrn() {
        return this.lastTransRrn;
    }

    public void setLastTransRrn(Long lastTransRrn) {
        this.lastTransRrn = lastTransRrn;
    }

    public Long getExecutionRrn() {
        return this.executionRrn;
    }

    public void setExecutionRrn(Long executionRrn) {
        this.executionRrn = executionRrn;
    }

    public Collection getDocuments() {
        return this.documents;
    }

    public void setDocuments(Collection documents) {
        this.documents = documents;
    }

    public Collection getConstraints() {
        return this.constraints;
    }

    public void setConstraints(Collection constraints) {
        this.constraints = constraints;
    }

    public Collection getPmschedules() {
        return this.pmschedules;
    }

    public void setPmschedules(Collection pmschedules) {
        this.pmschedules = pmschedules;
    }

    public Collection getEntitycounters() {
        return this.entitycounters;
    }

    public void setEntitycounters(Collection entitycounters) {
        this.entitycounters = entitycounters;
    }

    public Collection getEntitystatuss() {
        return this.entitystatuss;
    }

    public void setEntitystatuss(Collection entitystatuss) {
        this.entitystatuss = entitystatuss;
    }

    public Collection getReservations() {
        return this.reservations;
    }

    public void setReservations(Collection reservations) {
        this.reservations = reservations;
    }

    public Collection getChildChambers() {
        return childChambers;
    }

    public void setChildChambers(Collection childChambers) {
        this.childChambers = childChambers;
    }

    public String getKeyEntityFlag() {
        return this.keyEntityFlag;
    }

    public void setKeyEntityFlag(String keyEntityFlag) {
        this.keyEntityFlag = keyEntityFlag;
    }

    // availability
    public String getAvailability() {
        return this.availability;
    }

    public void setAvailability(String availability) {
        this.availability = availability;
    }

    public String getEquipmentCapability() {
        return equipmentCapability;
    }

    public void setEquipmentCapability(String equipmentCapability) {
        this.equipmentCapability = equipmentCapability;
    }

    public String getEquipmentModel() {
        return equipmentModel;
    }

    public void setEquipmentModel(String equipmentModel) {
        this.equipmentModel = equipmentModel;
    }

    public String getCurrentStatus() {
        return currentStatus;
    }

    public void setCurrentStatus(String currentStatus) {
        this.currentStatus = currentStatus;
    }

    public String getPollutionLevel() {
        return pollutionLevel;
    }

    public void setPollutionLevel(String pollutionLevel) {
        this.pollutionLevel = pollutionLevel;
    }

    public boolean getPmHoldFlag() {
        return pmHoldFlag;
    }

    public void setPmHoldFlag(boolean pmHoldFlag) {
        this.pmHoldFlag = pmHoldFlag;
    }

    public String getMoveNextPollutionLevels() {
        return moveNextPollutionLevels;
    }

    public void setMoveNextPollutionLevels(String moveNextPollutionLevels) {
        this.moveNextPollutionLevels = moveNextPollutionLevels;
    }

    public String getIsPlOpen() {
        return isPlOpen;
    }

    public void setIsPlOpen(String isPlOpen) {
        this.isPlOpen = isPlOpen;
    }

    public String getIsMoveNeitPlOpen() {
        return isMoveNeitPlOpen;
    }

    public void setIsMoveNeitPlOpen(String isMoveNeitPlOpen) {
        this.isMoveNeitPlOpen = isMoveNeitPlOpen;
    }

    /**
     * @return the defaultEquipConstrain
     */
    public String getDefaultEquipConstrain() {
        return defaultEquipConstrain;
    }

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

    public String getLocationId() {
        return locationId;
    }

    public void setLocationId(String locationId) {
        this.locationId = locationId;
    }

    public String getChamberMode() {
        return chamberMode;
    }

    public void setChamberMode(String chamberMode) {
        this.chamberMode = chamberMode;
    }

    public Map<String, String> getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(Map<String, String> errorMsg) {
        this.errorMsg = errorMsg;
    }

    public String getAttributeData1() {
        return attributeData1;
    }

    public void setAttributeData1(String attributeData1) {
        this.attributeData1 = attributeData1;
    }

    public String getAttributeData2() {
        return attributeData2;
    }

    public void setAttributeData2(String attributeData2) {
        this.attributeData2 = attributeData2;
    }

    public String getAttributeData3() {
        return attributeData3;
    }

    public void setAttributeData3(String attributeData3) {
        this.attributeData3 = attributeData3;
    }

    public String getAttributeData4() {
        return attributeData4;
    }

    public void setAttributeData4(String attributeData4) {
        this.attributeData4 = attributeData4;
    }

    public String getAttributeData5() {
        return attributeData5;
    }

    public void setAttributeData5(String attributeData5) {
        this.attributeData5 = attributeData5;
    }

    public String getAttributeData6() {
        return attributeData6;
    }

    public void setAttributeData6(String attributeData6) {
        this.attributeData6 = attributeData6;
    }

    public String getReticleType() {
        return reticleType;
    }

    public void setReticleType(String reticleType) {
        this.reticleType = reticleType;
    }

    /*
     * 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; }
     */

}

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