/** {@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 (i == null) { LOGGER.warn(" i not set"); throw new MissingParameterException( " i not set for Parameter of Type C1G2TagInventoryStateAwareSingulationAction"); } resultBits.append(i.encodeBinary()); if (s == null) { LOGGER.warn(" s not set"); throw new MissingParameterException( " s not set for Parameter of Type C1G2TagInventoryStateAwareSingulationAction"); } resultBits.append(s.encodeBinary()); resultBits.append(reserved0.encodeBinary()); return resultBits; }
/** {@inheritDoc} */ protected LLRPBitList encodeBinarySpecific() throws InvalidLLRPMessageException { LLRPBitList resultBits = new LLRPBitList(); if (lLRPStatus == null) { // single parameter, may not be null LOGGER.warn(" lLRPStatus not set"); throw new InvalidLLRPMessageException(" lLRPStatus not set"); } else { resultBits.append(lLRPStatus.encodeBinary()); } if (accessSpecList == null) { // just warn - it is optional LOGGER.info(" accessSpecList not set"); } else { for (AccessSpec field : accessSpecList) { resultBits.append(field.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; }
/** {@inheritDoc} */ protected LLRPBitList encodeBinarySpecific() throws InvalidLLRPMessageException { LLRPBitList resultBits = new LLRPBitList(); if (resetToFactoryDefault == null) { LOGGER.warn(" resetToFactoryDefault not set"); throw new InvalidLLRPMessageException( " resetToFactoryDefault not set for Parameter of Type SET_READER_CONFIG"); } resultBits.append(resetToFactoryDefault.encodeBinary()); resultBits.append(reserved0.encodeBinary()); if (readerEventNotificationSpec == null) { // optional parameter, may be null LOGGER.info(" readerEventNotificationSpec not set"); } else { resultBits.append(readerEventNotificationSpec.encodeBinary()); } if (antennaPropertiesList == null) { // just warn - it is optional LOGGER.info(" antennaPropertiesList not set"); } else { for (AntennaProperties field : antennaPropertiesList) { resultBits.append(field.encodeBinary()); } } if (antennaConfigurationList == null) { // just warn - it is optional LOGGER.info(" antennaConfigurationList not set"); } else { for (AntennaConfiguration field : antennaConfigurationList) { resultBits.append(field.encodeBinary()); } } if (rOReportSpec == null) { // optional parameter, may be null LOGGER.info(" rOReportSpec not set"); } else { resultBits.append(rOReportSpec.encodeBinary()); } if (accessReportSpec == null) { // optional parameter, may be null LOGGER.info(" accessReportSpec not set"); } else { resultBits.append(accessReportSpec.encodeBinary()); } if (keepaliveSpec == null) { // optional parameter, may be null LOGGER.info(" keepaliveSpec not set"); } else { resultBits.append(keepaliveSpec.encodeBinary()); } if (gPOWriteDataList == null) { // just warn - it is optional LOGGER.info(" gPOWriteDataList not set"); } else { for (GPOWriteData field : gPOWriteDataList) { resultBits.append(field.encodeBinary()); } } if (gPIPortCurrentStateList == null) { // just warn - it is optional LOGGER.info(" gPIPortCurrentStateList not set"); } else { for (GPIPortCurrentState field : gPIPortCurrentStateList) { resultBits.append(field.encodeBinary()); } } if (eventsAndReports == null) { // optional parameter, may be null LOGGER.info(" eventsAndReports not set"); } else { resultBits.append(eventsAndReports.encodeBinary()); } if (customList == null) { // just warn - it is optional LOGGER.info(" customList not set"); } else { for (Custom field : customList) { resultBits.append(field.encodeBinary()); } } return resultBits; }