Exemple #1
0
        public void SetLocation(string LocationID)
        {
            Node TargetNode = NodeManagement.Get(LocationID);

            if (TargetNode != null)
            {
                if (TargetNode.Carrier != null)
                {
                    CarrierManagement.Remove(TargetNode.Carrier);
                }
                TargetNode.Carrier = this;
            }
            this.LocationID = LocationID;
        }
        public static Node GetOCRByController(string DeviceName)
        {
            Node result = null;

            var node = from LD in NodeManagement.GetList()
                       where LD.Controller.Equals(DeviceName)
                       select LD;

            if (node.Count() != 0)
            {
                result = node.First();
                if (!result.Type.Equals("OCR"))
                {
                    result = null;
                }
            }
            return(result);
        }
Exemple #3
0
        public static bool Remove(Carrier Carrier)
        {
            if (Carrier == null)
            {
                return(true);
            }
            bool result = false;

            lock (CarrierList)
            {
                Node orgNode = NodeManagement.Get(Carrier.LocationID);
                if (orgNode != null)
                {
                    orgNode.Carrier = null;
                }
                result = CarrierList.Remove(Carrier);
            }
            return(result);
        }
        public static RobotPoint GetPoint(string NodeName, string Position)
        {
            RobotPoint result = null;
            Dictionary <string, RobotPoint> tmp;
            Node targetPosition = NodeManagement.Get(Position);

            if (!targetPosition.CarrierType.Equals(""))
            {
                Position += "_" + targetPosition.CarrierType;
            }
            if (!targetPosition.WaferSize.Equals(""))
            {
                Position += "_" + targetPosition.WaferSize;
            }

            if (PointList.TryGetValue(NodeName, out tmp))
            {
                tmp.TryGetValue(Position, out result);
            }
            return(result);
        }