RfidClient.java
2.86 KB
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
package com.yoho.rfid.model;
/**
* 读写器
*/
public class RfidClient {
private String macId;
private String ip;
private String port;
/**
* 天线是否启用
*/
private boolean power0;
private boolean power1;
private boolean power2;
private boolean power3;
/**
* 天线功率
*/
private int capacity0;
private int capacity1;
private int capacity2;
private int capacity3;
/**
* 工作模式,SPEED_FASTEST(0), SPEED_NORMAL(1), SPEED_POWERSAVE(2), SPEED_FULL_POWER(3);
*/
private int speedMode;
public String getMacId() {
return macId;
}
public void setMacId(String macId) {
this.macId = macId;
}
public String getIp() {
return ip;
}
public void setIp(String ip) {
this.ip = ip;
}
public String getPort() {
return port;
}
public void setPort(String port) {
this.port = port;
}
public boolean isPower1() {
return power1;
}
public void setPower1(boolean power1) {
this.power1 = power1;
}
public boolean isPower2() {
return power2;
}
public void setPower2(boolean power2) {
this.power2 = power2;
}
public boolean isPower3() {
return power3;
}
public void setPower3(boolean power3) {
this.power3 = power3;
}
public int getCapacity1() {
return capacity1;
}
public void setCapacity1(int capacity1) {
this.capacity1 = capacity1;
}
public int getCapacity2() {
return capacity2;
}
public void setCapacity2(int capacity2) {
this.capacity2 = capacity2;
}
public int getCapacity3() {
return capacity3;
}
public void setCapacity3(int capacity3) {
this.capacity3 = capacity3;
}
public int getSpeedMode() {
return speedMode;
}
public void setSpeedMode(int speedMode) {
this.speedMode = speedMode;
}
public boolean isPower0() {
return power0;
}
public void setPower0(boolean power0) {
this.power0 = power0;
}
public int getCapacity0() {
return capacity0;
}
public void setCapacity0(int capacity0) {
this.capacity0 = capacity0;
}
@Override
public String toString() {
return "RfidClient{" +
"macId='" + macId + '\'' +
", ip='" + ip + '\'' +
", port='" + port + '\'' +
", power0=" + power0 +
", power1=" + power1 +
", power2=" + power2 +
", power3=" + power3 +
", capacity0=" + capacity0 +
", capacity1=" + capacity1 +
", capacity2=" + capacity2 +
", capacity3=" + capacity3 +
", speedMode=" + speedMode +
'}';
}
}