Rev 1566 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1566 | Rev 1611 | ||
---|---|---|---|
1 | package dongfang.mkt.frames; |
1 | package dongfang.mkt.frames; |
2 | 2 | ||
3 | import java.io.IOException; |
3 | import java.io.IOException; |
4 | 4 | ||
5 | import dongfang.mkt.RequestFrameVisitor; |
5 | import dongfang.mkt.RequestFrameVisitor; |
6 | 6 | ||
7 | 7 | ||
8 | public class WriteParamSetRequestFrame extends RequestFrame { |
8 | public class WriteParamSetRequestFrame extends RequestFrame { |
- | 9 | private char[] name; |
|
- | 10 | private int[] data; |
|
- | 11 | private int configurationSetNumber; |
|
9 | WriteParamSetRequestFrame(int address) { |
12 | private int configurationVersionNumber; |
- | 13 | ||
- | 14 | public WriteParamSetRequestFrame(int configurationVersionNumber, char[] name, int[] data) { |
|
10 | super(address); |
15 | super(FC_ADDRESS); |
- | 16 | this.configurationVersionNumber = configurationVersionNumber; |
|
- | 17 | this.name = name; |
|
- | 18 | this.data = data; |
|
11 | } |
19 | } |
12 | 20 | ||
13 | @Override |
21 | @Override |
14 | public void accept(RequestFrameVisitor o) throws IOException { |
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 | } |
|
- | 45 | ||
- | 46 | public char[] getName() { |
|
- | 47 | return name; |
|
15 | } |
48 | } |
16 | } |
49 | } |
17 | 50 |