Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1535 - 1
package dongfang.mkt.frames;
2
 
3
public class UniversalWriteParamSetResponseFrame extends ResponseFrame {
4
        private int parameterSetNumber;
5
 
6
        public UniversalWriteParamSetResponseFrame(int address) {
7
                super(address);
8
        }
9
 
10
        @Override
11
        public boolean isResponseTo(RequestFrame r) {
12
                return r instanceof UniversalWriteParamSetRequestFrame;
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
}