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); }
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); } }
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); }
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); }
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; }
public void Remove(LotLocation location) { Remove(location.WipType, location.Lot); }
public void RemoveWipVar(LotLocation lotLocation) { RemoveWip(lotLocation.WipType, lotLocation.Lot, lotLocation.Location); }