2010-01-26 1.2.0

org.eclipse.soda.dk.rfid.write.profile.testcases
Class RfidWriteProfileTester

java.lang.Object
  extended by Profile
      extended by org.eclipse.soda.dk.rfid.write.profile.RfidWriteProfile
          extended by org.eclipse.soda.dk.rfid.write.profile.testcases.RfidWriteProfileTester
All Implemented Interfaces:
RfidWriteProfileService

public class RfidWriteProfileTester
extends RfidWriteProfile

Since:
1.0
Version:
1.2.0

Field Summary
 
Fields inherited from class org.eclipse.soda.dk.rfid.write.profile.RfidWriteProfile
aggregationInterest, antennaConfiguration, CLASS_NAME, CONTROL_PROFILE_PREFIX, controlProfileServiceBitsExternalKey, controlProfileServiceBitsGetExternalKey, controlProfileServiceLongsExternalKey, controlProfileServiceLongsGetExternalKey, dataExtensions, dataWriteExtensions, GPIO_PROFILE_PREFIX, gpioProfileServiceAnalogInputExternalKey, gpioProfileServiceAnalogInputGetExternalKey, gpioProfileServiceInputExternalKey, gpioProfileServiceInputGetExternalKey, tagAggregationWriteMaskSetting, tagInterest, tagWriteAggregating, tagWriteAggregatingExpression, tagWriteAggregationReport, tagWriteAntennaReporting, tagWriteMaskSetting, tagWriteReport, writeOperations, writeOperationsExecuteRequest, writeOperationsExecuteStatus, writeOperationsExpression, writeOperationsStopRequest
 
Fields inherited from interface org.eclipse.soda.dk.rfid.write.profile.service.RfidWriteProfileService
ALL_COMMANDS, ALL_MEASUREMENTS, ALL_SIGNALS, ANTENNA_CONFIGURATION_ERROR_EXTERNAL_KEY, ANTENNA_CONFIGURATION_EXTERNAL_KEY, ANTENNA_CONFIGURATION_GET_EXTERNAL_KEY, ANTENNA_CONFIGURATION_KEY, ANTENNA_CONFIGURATION_READ_EXTERNAL_KEY, ANTENNA_CONFIGURATION_WRITE_EXTERNAL_KEY, ANTENNA_DATA_KEY, ANTENNA1_DATA_KEY, ANTENNA2_DATA_KEY, ANTENNA3_DATA_KEY, ANTENNA4_DATA_KEY, AntennaConfiguration, BLOCKERASE, BLOCKWRITE, Capabilities, CAPABILITIES_ERROR_EXTERNAL_KEY, CAPABILITIES_EXTERNAL_KEY, CAPABILITIES_GET_EXTERNAL_KEY, CLEAN_FILTER, Configuration, CONFIGURATION_ERROR_EXTERNAL_KEY, CONFIGURATION_EXTERNAL_KEY, CONFIGURATION_GET_EXTERNAL_KEY, COUNT_DATA_KEY, DATA_EXTENSIONS_DATA_KEY, DATA_WRITE_EXTENSIONS_ERROR_EXTERNAL_KEY, DATA_WRITE_EXTENSIONS_EXTERNAL_KEY, DATA_WRITE_EXTENSIONS_GET_EXTERNAL_KEY, DATA_WRITE_EXTENSIONS_READ_EXTERNAL_KEY, DATA_WRITE_EXTENSIONS_WRITE_EXTERNAL_KEY, DataWriteExtensions, EXECUTE_ON_OPERATION_CHANGE, EXECUTE_ON_OPERATION_CHANGE_DEFAULT, EXECUTE_ON_OPERATION_CHANGE_PROPERTY, FILTER, INCREMENT_WRITE, KILL, LOCK, Metrics, METRICS_ERROR_EXTERNAL_KEY, METRICS_EXTERNAL_KEY, METRICS_GET_EXTERNAL_KEY, OP_PARAMETER_SEPERATOR, OPERATION_SEPERATOR, PEAK_RSSI_DATA_KEY, READ, READ_DATA_DATA_KEY, READDATA_KEY, READER_DATA_KEY, RESULT_CODE_DATA_KEY, RESULT_CODE_KEY, RfidWriteProfile, SERVICE_DESCRIPTION, SERVICE_NAME, Status, STATUS_ERROR_EXTERNAL_KEY, STATUS_EXTERNAL_KEY, STATUS_GET_EXTERNAL_KEY, STOP, TAG_AGGREGATION_WRITE_MASK_SETTING_ERROR_EXTERNAL_KEY, TAG_AGGREGATION_WRITE_MASK_SETTING_EXTERNAL_KEY, TAG_AGGREGATION_WRITE_MASK_SETTING_GET_EXTERNAL_KEY, TAG_AGGREGATION_WRITE_MASK_SETTING_KEY, TAG_AGGREGATION_WRITE_MASK_SETTING_READ_EXTERNAL_KEY, TAG_AGGREGATION_WRITE_MASK_SETTING_WRITE_EXTERNAL_KEY, TAG_WRITE_AGGREGATING_ERROR_EXTERNAL_KEY, TAG_WRITE_AGGREGATING_EXPRESSION_ERROR_EXTERNAL_KEY, TAG_WRITE_AGGREGATING_EXPRESSION_EXTERNAL_KEY, TAG_WRITE_AGGREGATING_EXPRESSION_GET_EXTERNAL_KEY, TAG_WRITE_AGGREGATING_EXPRESSION_KEY, TAG_WRITE_AGGREGATING_EXPRESSION_READ_EXTERNAL_KEY, TAG_WRITE_AGGREGATING_EXPRESSION_WRITE_EXTERNAL_KEY, TAG_WRITE_AGGREGATING_EXTERNAL_KEY, TAG_WRITE_AGGREGATING_GET_EXTERNAL_KEY, TAG_WRITE_AGGREGATING_READ_EXTERNAL_KEY, TAG_WRITE_AGGREGATING_WRITE_EXTERNAL_KEY, TAG_WRITE_AGGREGATION_REPORT_ERROR_EXTERNAL_KEY, TAG_WRITE_AGGREGATION_REPORT_EXTERNAL_KEY, TAG_WRITE_AGGREGATION_REPORT_TRIGGER_EXTERNAL_KEY, TAG_WRITE_ANTENNA_REPORTING_ERROR_EXTERNAL_KEY, TAG_WRITE_ANTENNA_REPORTING_EXTERNAL_KEY, TAG_WRITE_ANTENNA_REPORTING_GET_EXTERNAL_KEY, TAG_WRITE_ANTENNA_REPORTING_READ_EXTERNAL_KEY, TAG_WRITE_ANTENNA_REPORTING_WRITE_EXTERNAL_KEY, TAG_WRITE_MASK_SETTING_ERROR_EXTERNAL_KEY, TAG_WRITE_MASK_SETTING_EXTERNAL_KEY, TAG_WRITE_MASK_SETTING_GET_EXTERNAL_KEY, TAG_WRITE_MASK_SETTING_KEY, TAG_WRITE_MASK_SETTING_READ_EXTERNAL_KEY, TAG_WRITE_MASK_SETTING_WRITE_EXTERNAL_KEY, TAG_WRITE_REPORT_ERROR_EXTERNAL_KEY, TAG_WRITE_REPORT_EXTERNAL_KEY, TAG_WRITE_REPORT_TRIGGER_EXTERNAL_KEY, TagAggregationWriteMaskSetting, TAGS_DATA_KEY, TagWriteAggregating, TagWriteAggregatingExpression, TagWriteAggregationReport, TagWriteAntennaReporting, TagWriteMaskSetting, TagWriteReport, TagWriting, TAGWRITING_EXTERNAL_KEY, TAGWRITING_GET_EXTERNAL_KEY, TagWritingExpression, TAGWRITINGEXPRESSION_EXTERNAL_KEY, TAGWRITINGEXPRESSION_GET_EXTERNAL_KEY, TAGWRITINGEXPRESSION_KEY, TIMESTAMP_FIRST_DATA_KEY, TIMESTAMP_LAST_DATA_KEY, WRITE, WRITE_OPERATIONS_ERROR_EXTERNAL_KEY, WRITE_OPERATIONS_EXECUTE_REQUEST_ERROR_EXTERNAL_KEY, WRITE_OPERATIONS_EXECUTE_REQUEST_EXTERNAL_KEY, WRITE_OPERATIONS_EXECUTE_STATUS_ERROR_EXTERNAL_KEY, WRITE_OPERATIONS_EXECUTE_STATUS_EXTERNAL_KEY, WRITE_OPERATIONS_EXECUTE_STATUS_GET_EXTERNAL_KEY, WRITE_OPERATIONS_EXECUTE_STATUS_READ_EXTERNAL_KEY, WRITE_OPERATIONS_EXPRESSION_ERROR_EXTERNAL_KEY, WRITE_OPERATIONS_EXPRESSION_EXTERNAL_KEY, WRITE_OPERATIONS_EXPRESSION_GET_EXTERNAL_KEY, WRITE_OPERATIONS_EXPRESSION_KEY, WRITE_OPERATIONS_EXPRESSION_READ_EXTERNAL_KEY, WRITE_OPERATIONS_EXPRESSION_WRITE_EXTERNAL_KEY, WRITE_OPERATIONS_EXTERNAL_KEY, WRITE_OPERATIONS_GET_EXTERNAL_KEY, WRITE_OPERATIONS_KEY, WRITE_OPERATIONS_READ_EXTERNAL_KEY, WRITE_OPERATIONS_STOP_REQUEST_ERROR_EXTERNAL_KEY, WRITE_OPERATIONS_STOP_REQUEST_EXTERNAL_KEY, WRITE_OPERATIONS_WRITE_EXTERNAL_KEY, WriteOperations, WriteOperationsExecuteRequest, WRITEOPERATIONSEXECUTEREQUEST_EXECUTE_EXTERNAL_KEY, WriteOperationsExecuteStatus, WriteOperationsExpression, WriteOperationsStopRequest, WRITEOPERATIONSSTOPREQUEST_EXECUTE_EXTERNAL_KEY
 
Constructor Summary
RfidWriteProfileTester()
          Constructs an instance of this class.
 
Method Summary
protected  boolean autonomousModeOff()
          Autonomous mode off and return the boolean result.
protected  boolean autonomousModeOn()
          Autonomous mode on and return the boolean result.
protected  void endOperations()
          End operations.
protected  boolean executeBlockErase(java.lang.String[] op_parameters)
          Execute block erase with the specified opparameters parameter and return the boolean result.
protected  boolean executeBlockWrite(java.lang.String[] op_parameters)
          Execute block write with the specified opparameters parameter and return the boolean result.
protected  boolean executeFilter(java.lang.String[] op_parameters)
          Execute filter with the specified opparameters parameter and return the boolean result.
protected  boolean executeIncrementWrite(java.lang.String[] op_parameters)
          Execute increment write with the specified opparameters parameter and return the boolean result.
protected  boolean executeKill(java.lang.String[] op_parameters)
          Execute kill with the specified opparameters parameter and return the boolean result.
protected  boolean executeLock(java.lang.String[] op_parameters)
          Execute lock with the specified opparameters parameter and return the boolean result.
protected  boolean executeRead(java.lang.String[] op_parameters)
          Execute read with the specified opparameters parameter and return the boolean result.
protected  void executeStop()
          Execute stop.
protected  boolean executeWrite(java.lang.String[] op_parameters)
          Execute write with the specified opparameters parameter and return the boolean result.
 void notifyTagReport(java.lang.String key, java.lang.String operationId, java.util.Map reads, java.lang.Object timestamp)
          Notify tag report with the specified key, operation id, reads and timestamp parameters.
protected  boolean startOperations()
          Start operations and return the boolean result.
 
Methods inherited from class org.eclipse.soda.dk.rfid.write.profile.RfidWriteProfile
activate, addTagToCache, applyDataExtensions, buildOuterTagMessage, buildTagMessage, consumeRequests, createLdapFilter, deactivate, evaluateTagAggregatingLdapFilter, evaluateWriteOperationLdapFilter, executeWriteOperations, flushAggregatorCache, flushTagCache, getAntennaConfiguration, getControlCapacity, getControlProfilePrefix, getDataWriteExtensions, getDefaultDevice, getDefaultKey, getExecuteOnOperationChange, getGpioProfilePrefix, getMessageCapacity, getReaderId, getTagAggregationWriteMaskSetting, getTagWriteAggregating, getTagWriteAggregatingExpression, getTagWriteAggregationReport, getTagWriteAntennaReporting, getTagWriteMaskSetting, getTagWriteReport, getWriteOperations, getWriteOperationsExecuteRequest, getWriteOperationsExecuteStatus, getWriteOperationsExpression, getWriteOperationsStopRequest, handleControlProfileServiceBits, handleControlProfileServiceLongs, handleGetWriteOperationsExecuteStatus, handleGpioProfileServiceAnalogInput, handleGpioProfileServiceInput, handleMethodAntennaConfiguration, handleMethodDataWriteExtensions, handleMethodTagAggregationWriteMaskSetting, handleMethodTagWriteAggregating, handleMethodTagWriteAggregatingExpression, handleMethodTagWriteAntennaReporting, handleMethodTagWriteMaskSetting, handleMethodWriteOperations, handleMethodWriteOperationsExecuteRequest, handleMethodWriteOperationsExecuteStatus, handleMethodWriteOperationsExpression, handleMethodWriteOperationsStopRequest, handleSetAntennaConfiguration, handleSetTagAggregationWriteMaskSetting, handleSetTagWriteAggregatingExpression, handleSetTagWriteMaskSetting, handleSetWriteOperationExpression, handleSetWriteOperations, handleSetWriteOperationsExecuteStatus, handleTagWriteAggregating, handleWriteOperationsError, handleWriteOperationsStopRequest, improveReportMap, isDeviceNeeded, isOperationsRunning, isTagWriteAntennaReporting, isValidTagId, measurementChanged, mergeAntennaInfo, mergeMapOverMap, notificationReceived, notifyTagAggregation, notifyTagReport, operationsInterrupted, parseDelimitedByToken, parseHexSpaceDelimited, parseInterestMasks, setExecuteOnOperationChange, setOperationsStatusFinished, setOperationsStatusStarted, setTagWriteAggregatingLdapFilter, setup, setupNotification, setWriteOperationLdapFilter, toBytes, updateTagInCache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RfidWriteProfileTester

public RfidWriteProfileTester()
Constructs an instance of this class.

Method Detail

autonomousModeOff

protected boolean autonomousModeOff()
Autonomous mode off and return the boolean result.

Returns:
Results of the autonomous mode off (boolean) value.

autonomousModeOn

protected boolean autonomousModeOn()
Autonomous mode on and return the boolean result.

Returns:
Results of the autonomous mode on (boolean) value.

endOperations

protected void endOperations()
End operations.

Specified by:
endOperations in class RfidWriteProfile
See Also:
startOperations()

executeBlockErase

protected boolean executeBlockErase(java.lang.String[] op_parameters)
Execute block erase with the specified opparameters parameter and return the boolean result.

Specified by:
executeBlockErase in class RfidWriteProfile
Parameters:
op_parameters - The opparameters (String[]) parameter.
Returns:
Results of the execute block erase (boolean) value.

executeBlockWrite

protected boolean executeBlockWrite(java.lang.String[] op_parameters)
Execute block write with the specified opparameters parameter and return the boolean result.

Specified by:
executeBlockWrite in class RfidWriteProfile
Parameters:
op_parameters - The opparameters (String[]) parameter.
Returns:
Results of the execute block write (boolean) value.

executeFilter

protected boolean executeFilter(java.lang.String[] op_parameters)
Execute filter with the specified opparameters parameter and return the boolean result.

Specified by:
executeFilter in class RfidWriteProfile
Parameters:
op_parameters - The opparameters (String[]) parameter.
Returns:
Results of the execute filter (boolean) value.
See Also:
RfidWriteProfile.createLdapFilter(String), RfidWriteProfile.evaluateTagAggregatingLdapFilter(), RfidWriteProfile.evaluateWriteOperationLdapFilter(), RfidWriteProfile.setTagWriteAggregatingLdapFilter(Filter), RfidWriteProfile.setWriteOperationLdapFilter(Filter)

executeIncrementWrite

protected boolean executeIncrementWrite(java.lang.String[] op_parameters)
Execute increment write with the specified opparameters parameter and return the boolean result.

Specified by:
executeIncrementWrite in class RfidWriteProfile
Parameters:
op_parameters - The opparameters (String[]) parameter.
Returns:
Results of the execute increment write (boolean) value.

executeKill

protected boolean executeKill(java.lang.String[] op_parameters)
Execute kill with the specified opparameters parameter and return the boolean result.

Specified by:
executeKill in class RfidWriteProfile
Parameters:
op_parameters - The opparameters (String[]) parameter.
Returns:
Results of the execute kill (boolean) value.

executeLock

protected boolean executeLock(java.lang.String[] op_parameters)
Execute lock with the specified opparameters parameter and return the boolean result.

Specified by:
executeLock in class RfidWriteProfile
Parameters:
op_parameters - The opparameters (String[]) parameter.
Returns:
Results of the execute lock (boolean) value.

executeRead

protected boolean executeRead(java.lang.String[] op_parameters)
Execute read with the specified opparameters parameter and return the boolean result.

Specified by:
executeRead in class RfidWriteProfile
Parameters:
op_parameters - The opparameters (String[]) parameter.
Returns:
Results of the execute read (boolean) value.

executeStop

protected void executeStop()
Execute stop.

Specified by:
executeStop in class RfidWriteProfile

executeWrite

protected boolean executeWrite(java.lang.String[] op_parameters)
Execute write with the specified opparameters parameter and return the boolean result.

Specified by:
executeWrite in class RfidWriteProfile
Parameters:
op_parameters - The opparameters (String[]) parameter.
Returns:
Results of the execute write (boolean) value.
See Also:
executeBlockWrite(String[]), executeIncrementWrite(String[])

notifyTagReport

public void notifyTagReport(java.lang.String key,
                            java.lang.String operationId,
                            java.util.Map reads,
                            java.lang.Object timestamp)
Notify tag report with the specified key, operation id, reads and timestamp parameters.

Overrides:
notifyTagReport in class RfidWriteProfile
Parameters:
key - The key (String) parameter.
operationId - The operation ID (String) parameter.
reads - The reads (Map) parameter.
timestamp - The time stamp (Object) parameter.
See Also:
RfidWriteProfile.notifyTagReport(String,String,Map)

startOperations

protected boolean startOperations()
Start operations and return the boolean result.

Specified by:
startOperations in class RfidWriteProfile
Returns:
Results of the start operations (boolean) value.
See Also:
endOperations()

2010-01-26 1.2.0

Copyright (c) 2010 IBM. See license in Legal section.