Rev 1566 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1566 | Rev 1611 | ||
---|---|---|---|
Line 4... | Line 4... | ||
4 | 4 | ||
Line 5... | Line 5... | ||
5 | import dongfang.mkt.RequestFrameVisitor; |
5 | import dongfang.mkt.RequestFrameVisitor; |
- | 6 | ||
- | 7 | ||
- | 8 | public class WriteParamSetRequestFrame extends RequestFrame { |
|
6 | 9 | private char[] name; |
|
- | 10 | private int[] data; |
|
- | 11 | private int configurationSetNumber; |
|
7 | 12 | private int configurationVersionNumber; |
|
- | 13 | ||
- | 14 | public WriteParamSetRequestFrame(int configurationVersionNumber, char[] name, int[] data) { |
|
- | 15 | super(FC_ADDRESS); |
|
8 | public class WriteParamSetRequestFrame extends RequestFrame { |
16 | this.configurationVersionNumber = configurationVersionNumber; |
9 | WriteParamSetRequestFrame(int address) { |
17 | this.name = name; |
10 | super(address); |
18 | this.data = data; |
11 | } |
19 | } |
- | 20 | ||
- | 21 | @Override |
|
- | 22 | public void accept(RequestFrameVisitor o) throws IOException { |
|
- | 23 | o.visit(this); |
|
- | 24 | } |
|
- | 25 | ||
- | 26 | public int getConfigurationSetNumber() { |
|
- | 27 | return configurationSetNumber; |
|
- | 28 | } |
|
- | 29 | ||
- | 30 | public void setConfigurationSetNumber(int n) { |
|
- | 31 | this.configurationSetNumber = n ; |
|
- | 32 | } |
|
- | 33 | ||
- | 34 | public int getConfigurationVersionNumber() { |
|
- | 35 | return configurationVersionNumber; |
|
- | 36 | } |
|
- | 37 | ||
- | 38 | public int getDataLength() { |
|
- | 39 | return data.length; |
|
- | 40 | } |
|
- | 41 | ||
- | 42 | public int[] getData() { |
|
- | 43 | return data; |
|
- | 44 | } |
|
12 | 45 | ||
13 | @Override |
46 | public char[] getName() { |