Subversion Repositories Projects

Rev

Rev 1564 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1564 Rev 1566
1
package dongfang.mkt.frames;
1
package dongfang.mkt.frames;
2
 
2
 
3
import java.io.IOException;
3
import java.io.IOException;
-
 
4
 
-
 
5
import dongfang.mkt.RequestFrameVisitor;
4
 
6
 
5
 
7
 
6
public class UniversalWriteParamSetRequestFrame extends RequestFrame {
8
public class UniversalWriteParamSetRequestFrame extends RequestFrame {
7
        private int[] data;
9
        private int[] data;
8
        private int configurationSetNumber;
10
        private int configurationSetNumber;
9
        private int configurationVersionNumber;
11
        private int configurationVersionNumber;
10
       
12
       
11
        public UniversalWriteParamSetRequestFrame(int configurationVersionNumber, int[] data) {
13
        public UniversalWriteParamSetRequestFrame(int configurationVersionNumber, int[] data) {
12
                super(FC_ADDRESS);
14
                super(FC_ADDRESS);
13
                this.configurationVersionNumber = configurationVersionNumber;
15
                this.configurationVersionNumber = configurationVersionNumber;
14
                this.data = data;
16
                this.data = data;
15
        }
17
        }
16
       
18
       
17
        @Override
19
        @Override
18
        public void accept(RequestFrameVisitor o) throws IOException {
20
        public void accept(RequestFrameVisitor o) throws IOException {
19
                o.visit(this);
21
                o.visit(this);
20
        }
22
        }
21
       
23
       
22
        public int getConfigurationSetNumber() {
24
        public int getConfigurationSetNumber() {
23
                return configurationSetNumber;
25
                return configurationSetNumber;
24
        }
26
        }
25
 
27
 
26
        public void setConfigurationSetNumber(int n) {
28
        public void setConfigurationSetNumber(int n) {
27
                this.configurationSetNumber = n ;
29
                this.configurationSetNumber = n ;
28
        }
30
        }
29
 
31
 
30
        public int getConfigurationVersionNumber() {
32
        public int getConfigurationVersionNumber() {
31
                return configurationVersionNumber;
33
                return configurationVersionNumber;
32
        }
34
        }
33
 
35
 
34
        public int getDataLength() {
36
        public int getDataLength() {
35
                return data.length;
37
                return data.length;
36
        }
38
        }
37
       
39
       
38
        public int[] getData() {
40
        public int[] getData() {
39
                return data;
41
                return data;
40
        }
42
        }
41
}
43
}
42
 
44