/** {@inheritDoc} */ public LLRPBitList encodeBinarySpecific() { LLRPBitList resultBits = new LLRPBitList(); if (vendorIdentifier == null) { LOGGER.warn(" vendorIdentifier not set"); throw new MissingParameterException( " vendorIdentifier not set for Parameter of Type Custom"); } resultBits.append(vendorIdentifier.encodeBinary()); if (parameterSubtype == null) { LOGGER.warn(" parameterSubtype not set"); throw new MissingParameterException( " parameterSubtype not set for Parameter of Type Custom"); } resultBits.append(parameterSubtype.encodeBinary()); if (data == null) { LOGGER.warn(" data not set"); throw new MissingParameterException(" data not set for Parameter of Type Custom"); } resultBits.append(data.encodeBinary()); return resultBits; }
/** {@inheritDoc} */ public LLRPBitList encodeBinarySpecific() { LLRPBitList resultBits = new LLRPBitList(); if (opSpecID == null) { LOGGER.warn(" opSpecID not set"); throw new MissingParameterException( " opSpecID not set for Parameter of Type C1G2BlockErase"); } resultBits.append(opSpecID.encodeBinary()); if (accessPassword == null) { LOGGER.warn(" accessPassword not set"); throw new MissingParameterException( " accessPassword not set for Parameter of Type C1G2BlockErase"); } resultBits.append(accessPassword.encodeBinary()); if (mB == null) { LOGGER.warn(" mB not set"); throw new MissingParameterException(" mB not set for Parameter of Type C1G2BlockErase"); } resultBits.append(mB.encodeBinary()); resultBits.append(reserved0.encodeBinary()); if (wordPointer == null) { LOGGER.warn(" wordPointer not set"); throw new MissingParameterException( " wordPointer not set for Parameter of Type C1G2BlockErase"); } resultBits.append(wordPointer.encodeBinary()); if (wordCount == null) { LOGGER.warn(" wordCount not set"); throw new MissingParameterException( " wordCount not set for Parameter of Type C1G2BlockErase"); } resultBits.append(wordCount.encodeBinary()); return resultBits; }