1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
| 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);
| }
| }
| }
| }
| }
|
|