Subversion Repositories Projects

Rev

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

Rev 1540 Rev 1564
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
public class LoopbackTestRequestFrame extends RequestFrame {
6
public class LoopbackTestRequestFrame extends RequestFrame {
8
        int _byte;
7
        int _byte;
9
        int word;
8
        int word;
10
        char[] chararray;
9
        char[] chararray;
11
 
10
 
12
        LoopbackTestRequestFrame(int address) {
11
        LoopbackTestRequestFrame(int address) {
13
                super(address);
12
                super(address);
14
        }
13
        }
15
 
14
 
16
        @Override
15
        @Override
17
        public void accept(RequestFrameVisitor o) throws IOException {
16
        public void accept(RequestFrameVisitor o) throws IOException {
18
                o.visit(this);
17
                o.visit(this);
19
        }
18
        }
20
 
19
 
21
        public int getByte() {
20
        public int getByte() {
22
                return _byte;
21
                return _byte;
23
        }
22
        }
24
 
23
 
25
        public void setByte(int _byte) {
24
        public void setByte(int _byte) {
26
                this._byte = _byte;
25
                this._byte = _byte;
27
        }
26
        }
28
 
27
 
29
        public int getWord() {
28
        public int getWord() {
30
                return word;
29
                return word;
31
        }
30
        }
32
 
31
 
33
        public void setWord(int _word) {
32
        public void setWord(int _word) {
34
                this.word = _word;
33
                this.word = _word;
35
        }
34
        }
36
 
35
 
37
        public char[] getChararray() {
36
        public char[] getChararray() {
38
                return chararray;
37
                return chararray;
39
        }
38
        }
40
 
39
 
41
        public void setChararray(char[] chararray) {
40
        public void setChararray(char[] chararray) {
42
                this.chararray = chararray;
41
                this.chararray = chararray;
43
        }
42
        }
44
}
43
}
45
 
44