Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1540 | - | 1 | package dongfang.mkt.frames; |
2 | |||
3 | |||
4 | public class ChangeParameterSetResponseFrame extends ResponseFrame { |
||
5 | // public static final char ID = RESPONSE_IDS.CHANGEPARAMETERSET.getId(); |
||
6 | private int parameterSetNumber; |
||
7 | |||
8 | public ChangeParameterSetResponseFrame(int address) { |
||
9 | super(address); |
||
10 | } |
||
11 | |||
12 | @Override |
||
13 | public boolean isResponseTo(RequestFrame r) { |
||
14 | return r instanceof ChangeParameterSetRequestFrame |
||
15 | && ((ChangeParameterSetRequestFrame)r).getParameterSetNumber() == parameterSetNumber; |
||
16 | } |
||
17 | |||
18 | public int getParameterSetNumber() { |
||
19 | return parameterSetNumber; |
||
20 | } |
||
21 | |||
22 | public void setParameterSetNumber(int parameterSetNumber) { |
||
23 | this.parameterSetNumber = parameterSetNumber; |
||
24 | } |
||
25 | } |