Subversion Repositories Projects

Rev

Blame | Last modification | View Log | RSS feed

package dongfang.mkt.frames;

public class WriteParamSetResponseFrame extends ResponseFrame {
        private int parameterSetNumber;

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

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

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

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