Subversion Repositories Projects

Rev

Blame | Last modification | View Log | RSS feed

package dongfang.mkt.frames;

public class UniversalWriteParamSetResponseFrame extends ResponseFrame {
        private int parameterSetNumber;

        public UniversalWriteParamSetResponseFrame(int address) {
                super(address);
        }

        @Override
        public boolean isResponseTo(RequestFrame r) {
                return r instanceof UniversalWriteParamSetRequestFrame;
        }
       
        public void setParameterSetNumber(int parameterSetNumber) {
                this.parameterSetNumber = parameterSetNumber;
        }

        public int getParameterSetNumber() {
                return this.parameterSetNumber;
        }

        public boolean wasAccepted() {
                return parameterSetNumber != 0;
        }
}