/// <summary> /// 匹配工位 /// </summary> /// <param name="xCoord"></param> /// <param name="yCoord"></param> public bool MatchWst(int xCoord, int yCoord, WST wst) { if (Math.Abs(xCoord - (int)wst.CENTRE_X) < (wst.POSITION_LENGTH / 2) && Math.Abs(yCoord - (int)wst.CENTRE_Y) < (wst.WIDTH / 2)) { return(true); } return(false); }
public VisitorBase GetVisitor(CRANE_ACTION_RECORD_X record) { WST wst = WstManager.MatchWst((int)record.COORD_X, (int)record.COORD_Y); if (wst != null) { VisitorBase visitor = GetVisitor(wst.FIELD2); visitor.Wst = wst; return(visitor); } else { return(new UnknowVisitor()); } }