0,0 → 1,42 |
package dongfang.mkt.frames; |
|
|
public class ProfilerLabelResponseFrame extends ResponseFrame { |
|
private int channel; |
private char[] label; |
|
public ProfilerLabelResponseFrame(int address) { |
super(address); |
} |
|
@Override |
public boolean isResponseTo(RequestFrame r) { |
return r instanceof ProfilerLabelRequestFrame |
&& ((ProfilerLabelRequestFrame)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(); |
} |
} |