Exemplo n.º 1
0
        public void Add(LotLocation location)
        {
            List <FabLot> list = GetWipList(location.WipType, true);

            int index = list.BinarySearch(location.Lot, new CompareHelper.WipVarComparer());

            if (index < 0)
            {
                index = ~index;
            }

            list.Insert(index, location.Lot);
        }
Exemplo n.º 2
0
        public static void RemoveJob(LotLocation lotLocation)
        {
            FabLot lot = lotLocation.Lot;

            string key = JobState.GetKey(lot);

            JobState jobState;

            if (_jobStateDic.TryGetValue(key, out jobState))
            {
                jobState.RemoveWipVar(lotLocation);
            }
        }
Exemplo n.º 3
0
        public void AddWipVar(LotLocation lotLocation)
        {
            FabLot  lot  = lotLocation.Lot;
            FabStep step = lotLocation.Location;

            WipVar wipVar;

            if (_stepWips.TryGetValue(step, out wipVar) == false)
            {
                _stepWips.Add(step, wipVar = new WipVar(this, step));
            }

            wipVar.Add(lotLocation);
        }
Exemplo n.º 4
0
        public static void AddJob(LotLocation lotLocation)
        {
            FabLot lot = lotLocation.Lot;

            string key = JobState.GetKey(lot);

            JobState jobState;

            if (_jobStateDic.TryGetValue(key, out jobState) == false)
            {
                _jobStateDic.Add(key, jobState = new JobState(lot));
            }


            jobState.AddWipVar(lotLocation);
        }
Exemplo n.º 5
0
        private static void ChangeWipLocation(FabLot lot, EventType eventType)
        {
            if (lot.CurrentPlan == null)
            {
                return;
            }

            FabLot prevLot = lot;

            LotLocation prevLocation;

            if (_lotLocationDic.TryGetValue(prevLot, out prevLocation))
            {
                RemoveJob(prevLocation);
            }

            LotLocation lotLocation = new LotLocation(lot, eventType);

            AddJob(lotLocation);

            _lotLocationDic[lot] = lotLocation;
        }
Exemplo n.º 6
0
 public void Remove(LotLocation location)
 {
     Remove(location.WipType, location.Lot);
 }
Exemplo n.º 7
0
 public void RemoveWipVar(LotLocation lotLocation)
 {
     RemoveWip(lotLocation.WipType, lotLocation.Lot, lotLocation.Location);
 }