Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1613 | - | 1 | package dongfang.mkt.frames; |
2 | |||
3 | import java.io.IOException; |
||
4 | |||
5 | import dongfang.mkt.RequestFrameVisitor; |
||
6 | |||
7 | |||
8 | public class WriteIMUConfigurationRequestFrame extends RequestFrame { |
||
9 | private int[] data; |
||
10 | private int configurationVersionNumber; |
||
11 | |||
12 | public WriteIMUConfigurationRequestFrame(int configurationVersionNumber, int[] data) { |
||
13 | super(FC_ADDRESS); |
||
14 | this.configurationVersionNumber = configurationVersionNumber; |
||
15 | this.data = data; |
||
16 | } |
||
17 | |||
18 | @Override |
||
19 | public void accept(RequestFrameVisitor o) throws IOException { |
||
20 | o.visit(this); |
||
21 | } |
||
22 | |||
23 | public int getConfigurationVersionNumber() { |
||
24 | return configurationVersionNumber; |
||
25 | } |
||
26 | |||
27 | public int getDataLength() { |
||
28 | return data.length; |
||
29 | } |
||
30 | |||
31 | public int[] getData() { |
||
32 | return data; |
||
33 | } |
||
34 | } |