0,0 → 1,44 |
package dongfang.mkt.frames; |
|
public class LoopbackTestResponseFrame extends ResponseFrame { |
int _byte; |
int word; |
char[] chararray; |
|
public LoopbackTestResponseFrame(int address) { |
super(address); |
} |
|
@Override |
public boolean isResponseTo(RequestFrame r) { |
return r instanceof LoopbackTestRequestFrame; |
} |
|
public int getByte() { |
return _byte; |
} |
|
public void setByte(int _byte) { |
this._byte = _byte; |
} |
|
public int getWord() { |
return word; |
} |
|
public void setWord(int _word) { |
this.word = _word; |
} |
|
public char[] getChararray() { |
return chararray; |
} |
|
public void setChararray(char[] chararray) { |
this.chararray = chararray; |
} |
|
public String toString() { |
return getClass().getSimpleName() + ": byte=" + getByte() + ", word=" + getWord() + ", chars=" + new String(getChararray()); |
} |
} |