Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1611 - 1
package dongfang.mkt.frames;
2
 
3
public class WriteParamSetResponseFrame extends ResponseFrame {
4
        private int parameterSetNumber;
5
 
6
        public WriteParamSetResponseFrame(int address) {
7
                super(address);
8
        }
9
 
10
        @Override
11
        public boolean isResponseTo(RequestFrame r) {
12
                return r instanceof WriteParamSetRequestFrame;
13
        }
14
 
15
        public void setParameterSetNumber(int parameterSetNumber) {
16
                this.parameterSetNumber = parameterSetNumber;
17
        }
18
 
19
        public int getParameterSetNumber() {
20
                return this.parameterSetNumber;
21
        }
22
 
23
        public boolean wasAccepted() {
24
                return parameterSetNumber != 0;
25
        }
26
}