Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1540 | - | 1 | package dongfang.mkt.frames; |
2 | |||
3 | public class LoopbackTestResponseFrame extends ResponseFrame { |
||
4 | int _byte; |
||
5 | int word; |
||
6 | char[] chararray; |
||
7 | |||
8 | public LoopbackTestResponseFrame(int address) { |
||
9 | super(address); |
||
10 | } |
||
11 | |||
12 | @Override |
||
13 | public boolean isResponseTo(RequestFrame r) { |
||
14 | return r instanceof LoopbackTestRequestFrame; |
||
15 | } |
||
16 | |||
17 | public int getByte() { |
||
18 | return _byte; |
||
19 | } |
||
20 | |||
21 | public void setByte(int _byte) { |
||
22 | this._byte = _byte; |
||
23 | } |
||
24 | |||
25 | public int getWord() { |
||
26 | return word; |
||
27 | } |
||
28 | |||
29 | public void setWord(int _word) { |
||
30 | this.word = _word; |
||
31 | } |
||
32 | |||
33 | public char[] getChararray() { |
||
34 | return chararray; |
||
35 | } |
||
36 | |||
37 | public void setChararray(char[] chararray) { |
||
38 | this.chararray = chararray; |
||
39 | } |
||
40 | |||
41 | public String toString() { |
||
42 | return getClass().getSimpleName() + ": byte=" + getByte() + ", word=" + getWord() + ", chars=" + new String(getChararray()); |
||
43 | } |
||
44 | } |