1 package net.sf.mbus4j.dataframes;
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 import net.sf.json.JSONObject;
31
32 import net.sf.mbus4j.json.JsonSerializeType;
33
34
35
36
37
38
39 public class SendInitSlave implements ShortFrame {
40
41 private byte address;
42
43 public SendInitSlave() {
44 }
45
46 public SendInitSlave(byte address) {
47 this.address = address;
48 }
49
50 @Override
51 public byte getAddress() {
52 return address;
53 }
54
55 @Override
56 public ControlCode getControlCode() {
57 return ControlCode.SND_NKE;
58 }
59
60 @Override
61 public boolean isFcb() {
62 return false;
63 }
64
65 @Override
66 public boolean isFcv() {
67 return false;
68 }
69
70 @Override
71 public void setAddress(byte address) {
72 this.address = address;
73 }
74
75 @Override
76 public void setFcb(boolean fcb) {
77 throw new UnsupportedOperationException("set FCB not supported.");
78 }
79
80 @Override
81 public void setFcv(boolean fcv) {
82 throw new UnsupportedOperationException("set FCV not supported.");
83 }
84
85 @Override
86 public JSONObject toJSON(JsonSerializeType jsonSerializeType) {
87 throw new UnsupportedOperationException("Not supported yet.");
88 }
89
90 @Override
91 public void fromJSON(JSONObject json) {
92 throw new UnsupportedOperationException("Not supported yet.");
93 }
94 }