package fence; import java.awt.geom.Point2D; import Method.GetNowTime; import Xunjian.PointInXunjian; import tbDataModel_Dell.Map_Dell; /**ÅжÏÊÇ·ñÔÚΧÀ¸ÄÚ*/ public class juge_is_in_fence { /**±êÇ©id,Â¥²ã£¬xyz,batteryµçÁ¿,datafromÊý¾ÝÀ´Ô´0À´×ÔÎÀÐÇ£¬1À´×ÔUWB*/ public static void in_fences(String tagid,String floor,int x,int y,int z,String battery,int dataform) { //Èç¹ûΧÀ¸´æÔÚ if(Fences.getFeces().size()!=0) { String timestamp=GetNowTime.timestamp2(); if(Map_Dell.get_map(floor) !=null) { Point2D.Double point=new Point2D.Double(x,y); //ÅжϱêÇ©ÊÇ·ñÔÚ¿¼ÇÚÇøÓò int kqsize=Fences.getKaoqing_fences().size(); if(kqsize!=0) { PointIsInKaoQing.is_in_kaoqing_fence(Fences.getKaoqing_fences(), kqsize,tagid,floor,x,y,z,battery,timestamp,point); } //ÅжϱêÇ©ÊÇ·ñÔÚ¸æ¾¯ÇøÓò int jinrusize=Fences.getWarning_fences().size(); if(jinrusize !=0) { PointISInWarning.is_in_warning_fence( Fences.getWarning_fences(), jinrusize, tagid, timestamp, x, y, floor, point); } //ÅжϱêÇ©ÊÇ·ñÔÚ³ö¸æ¾¯ÇøÓò int outsize=Fences.getWarning_outfences().size(); if(outsize !=0) { PointIsInOutWarning.is_in_warning_fence( Fences.getWarning_outfences(), outsize, tagid, timestamp, x, y, floor, point); } //ÅжϱêÇ©ÊÇ·ñÔÚѲ¼ìÇøÓò int xunjian=Fences.getXunjian_fences().size(); if(xunjian !=0) { PointInXunjian.tag_is_in_xunjianfence( Fences.getXunjian_fences(), xunjian, tagid, timestamp, point, floor); } //ÅжϱêÇ©ÊÇ·ñÔÚÊÓÆµÇøÓò int shipingsize=Fences.getShiping_fences().size(); if(shipingsize !=0) { PointIsInShiping.is_in_shiping( Fences.getShiping_fences(), shipingsize, tagid, timestamp, x, y, floor, point); } //ÅжÏÊÇ·ñÔÚ×÷񵂿Óò int zuoyesize=Fences.getZuoye_fences().size(); if(zuoyesize !=0) { Pointinzuoyequ.inzuoye(tagid,x,y,floor,zuoyesize); } //ÅжϱêÇ©ÊÇ·ñÔÚ³¬Ô±ÇøÓò int cysize=Fences.getChaoyuan_fences().size(); if(cysize !=0) { Pointchaoyuan.isinchaoyuan(tagid, x, y, floor, cysize); } //ÅжϱêÇ©ÊÇ·ñÔÚ³¬Ê±¼äÇøÓò int cssize=Fences.getChaoshi_fences().size(); if(cssize !=0) { Pointinchaoshi.isinchaoshi(tagid, x,y, floor, cssize); } //ÅжÏÊÇ·ñÔÚ½øÃÅ¸æ¾¯ÇøÓò int jmsize=Fences.getIndoor_fences().size(); if(jmsize !=0) { Pointindoor.isindoor_fence(Fences.getIndoor_fences(), jmsize, tagid,x,y, floor, point); } //ÅжÏÊÇ·ñÔÚ³öÃÅ¸æ¾¯ÇøÓò int cmsize=Fences.getOutdoor_fences().size(); if(cmsize !=0) { Pointoutdoor.isindoor_fence(Fences.getOutdoor_fences(), cmsize, tagid,x,y, floor, point); PointIsInWall.is_in_wall(tagid,x,y,floor); } } } } }