Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 1541 → Rev 1542

/dongfang_FC_rewrite_tool/src/dongfang/mkt/frames/AllDisplaysResponseFrame.java
0,0 → 1,55
package dongfang.mkt.frames;
 
public class AllDisplaysResponseFrame extends ResponseFrame {
private int item;
private int line;
// private int maxItem;
private char[] text;
public AllDisplaysResponseFrame(int address) {
super(address);
}
 
@Override
public boolean isResponseTo(RequestFrame r) {
return r instanceof AllDisplaysRequestFrame;
}
 
public int getItem() {
return item;
}
 
public void setItem(int item) {
this.item = item;
}
 
public int getLine() {
return line;
}
 
public void setLine(int line) {
this.line = line;
}
 
/*
public int getMaxItem() {
return maxItem;
}
 
public void setMaxItem(int maxItem) {
this.maxItem = maxItem;
}
*/
 
public char[] getText() {
return text;
}
public String getTextAsString() {
return new String(text);
}
 
public void setText(char[] text) {
this.text = text;
}
}
/dongfang_FC_rewrite_tool/src/dongfang/mkt/frames/CompassHeadingResponseFrame.java
0,0 → 1,12
package dongfang.mkt.frames;
 
public class CompassHeadingResponseFrame extends ResponseFrame {
public CompassHeadingResponseFrame(int address) {
super(address);
}
 
@Override
public boolean isResponseTo(RequestFrame r) {
return r instanceof CompassHeadingRequestFrame;
}
}
/dongfang_FC_rewrite_tool/src/dongfang/mkt/frames/ConfirmFrame.java
0,0 → 1,22
package dongfang.mkt.frames;
 
public class ConfirmFrame extends ResponseFrame {
private int frameNum;
public ConfirmFrame(int address) {
super(address);
}
 
@Override
public boolean isResponseTo(RequestFrame r) {
return r instanceof ExternalControlRequestFrame;
}
 
public int getFrameNum() {
return frameNum;
}
 
public void setFrameNum(int frameNum) {
this.frameNum = frameNum;
}
}
/dongfang_FC_rewrite_tool/src/dongfang/mkt/frames/MotorTestResponseFrame.java
0,0 → 1,13
package dongfang.mkt.frames;
 
public class MotorTestResponseFrame extends ResponseFrame {
 
public MotorTestResponseFrame(int address) {
super(address);
}
 
@Override
public boolean isResponseTo(RequestFrame r) {
return r instanceof MotorTestRequestFrame;
}
}