Blame |
Last modification |
View Log
| RSS feed
package dongfang.mkt.frames;
public class AnalogDebugLabelResponseFrame
extends ResponseFrame
{
// public static final char ID = RESPONSE_IDS.ANALOG_DEBUG_LABEL.getId();
private int channel
;
private char[] label
;
public AnalogDebugLabelResponseFrame
(int address
) {
super(address
);
}
@
Override
public boolean isResponseTo
(RequestFrame r
) {
return r
instanceof AnalogDebugLabelRequestFrame
&& ((AnalogDebugLabelRequestFrame
)r
).
getChannel() == channel
;
}
public int getChannel
() {
return channel
;
}
public void setChannel
(int channel
) {
this.
channel = channel
;
}
public char[] getLabel
() {
return label
;
}
public String getLabelAsString
() {
return new String(label
);
}
public void setLabel
(char[] label
) {
this.
label = label
;
}
public String toString
() {
return getClass
().
getSimpleName() +
": label=" + getLabelAsString
();
}
}