|
2009-10-01 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.soda.dk.rfid.inventory.benchmark.servlet.RfidInventoryBenchmarkReader
public class RfidInventoryBenchmarkReader
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.soda.dk.rfid.inventory.benchmark.servlet.IRfidInventoryBenchmarkReader |
|---|
BENCHMARK_REPORT_TOPIC, BENCHMARKING_GET_TOPIC, BENCHMARKING_TOPIC, BENCHMARKING_WRITE_TOPIC, CONTROLBIT_CHANGEREQUEST_TOPIC, EMPTY_STRING, TAG_REPORT_TOPIC, TAGREADING_GET_TOPIC, TAGREADING_TOPIC |
| Constructor Summary | |
|---|---|
RfidInventoryBenchmarkReader(java.lang.String prefix,
NotificationService notificationService)
Constructs an instance of this class from the specified prefix and notification service parameters. |
|
| Method Summary | |
|---|---|
protected void |
benchmarkReportReceived(java.util.Map benchmarkReport)
Benchmark report received with the specified benchmark report parameter. |
void |
clearBenchmarkReports()
Clear benchmark reports. |
protected void |
controlTagRead(java.lang.Boolean state)
Control tag read with the specified state parameter. |
void |
displayBenchmarkDetailReports(DeviceServletContext context,
int serialNum)
Display benchmark detail reports with the specified context and serial num parameters. |
java.util.List |
getBenchmarkDetailReports(int serialNum)
Get benchmark detail reports with the specified serial num parameter and return the List result. |
java.lang.String |
getBenchmarkDetailReportStrin(int serialNum)
Get benchmark detail report strin with the specified serial num parameter and return the String result. |
void |
getBenchmarkReport_ajax(DeviceServletContext context)
Get benchmark report_ajax with the specified context parameter. |
java.util.List |
getBenchmarkReports()
Gets the benchmark reports (List) value. |
protected java.util.Map |
getControlBitsMap(java.lang.String bit,
java.lang.Boolean state)
Get control bits map with the specified bit and state parameters and return the Map result. |
int |
getCurrentRunFinishedCycles()
Gets the current run finished cycles (int) value. |
int |
getCurrentRunTotalCycle()
Gets the current run total cycle (int) value. |
java.lang.String |
getLatestTagReportTimestamp()
Gets the latest tag report time stamp (String) value. |
NotificationService |
getNotificationService()
Gets the notification service value. |
java.lang.String |
getPrefix()
Gets the prefix (String) value. |
boolean |
isBenchmarkEnabled()
Gets the benchmark enabled (boolean) value. |
protected boolean |
isBenchmarkRunStopped()
Gets the benchmark run stopped (boolean) value. |
boolean |
isTagreadStarted()
Gets the tagread started (boolean) value. |
void |
notificationReceived(java.lang.String externalKey,
java.util.Dictionary data)
Notification received with the specified external key and data parameters. |
protected void |
sendRequest(java.lang.String topic,
java.lang.Object request)
Send request with the specified topic and request parameters. |
void |
setBenchmarking(boolean state)
Sets the benchmarking value. |
protected void |
setBenchmarkRunStopped(boolean benchmarkRunStopped)
Sets the benchmark run stopped value. |
void |
setBenchmarkState(java.lang.Boolean benchmarkEnabled)
Sets the benchmark state value. |
void |
setCurrentRunFinishedCycles(int currentRunFinishedCycles)
Sets the current run finished cycles value. |
void |
setCurrentRunTotalCycle(int currentRunTotalCycle)
Sets the current run total cycle value. |
void |
setLatestTagReportTimestamp()
Set latest tag report time stamp. |
void |
setTagreadState(java.lang.Boolean tagreadStarted)
Sets the tagread state value. |
protected void |
singleBenchmarkRun(long duration,
long delay)
Single benchmark run with the specified duration and delay parameters. |
boolean |
startBenchmarkRuns(int cycles,
long duration,
long delay)
Start benchmark runs with the specified cycles, duration and delay parameters and return the boolean result. |
void |
stopBenchmarkRuns()
Stop benchmark runs. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RfidInventoryBenchmarkReader(java.lang.String prefix,
NotificationService notificationService)
prefix - The prefix (String) parameter.notificationService - The notification service (NotificationService) parameter.| Method Detail |
|---|
protected void benchmarkReportReceived(java.util.Map benchmarkReport)
benchmarkReport - The benchmark report (Map) parameter.public void clearBenchmarkReports()
clearBenchmarkReports in interface IRfidInventoryBenchmarkReadergetBenchmarkReports()protected void controlTagRead(java.lang.Boolean state)
state - The state (Boolean) parameter.
public void displayBenchmarkDetailReports(DeviceServletContext context,
int serialNum)
displayBenchmarkDetailReports in interface IRfidInventoryBenchmarkReadercontext - The context (DeviceServletContext) parameter.serialNum - The serial num (int) parameter.getBenchmarkDetailReports(int)public java.lang.String getBenchmarkDetailReportStrin(int serialNum)
serialNum - The serial num (int) parameter.
String) value.public java.util.List getBenchmarkDetailReports(int serialNum)
getBenchmarkDetailReports in interface IRfidInventoryBenchmarkReaderserialNum - The serial num (int) parameter.
List) value.displayBenchmarkDetailReports(DeviceServletContext,int)public void getBenchmarkReport_ajax(DeviceServletContext context)
getBenchmarkReport_ajax in interface IRfidInventoryBenchmarkReadercontext - The context (DeviceServletContext) parameter.public java.util.List getBenchmarkReports()
getBenchmarkReports in interface IRfidInventoryBenchmarkReaderList) value.clearBenchmarkReports()
protected java.util.Map getControlBitsMap(java.lang.String bit,
java.lang.Boolean state)
bit - The bit (String) parameter.state - The state (Boolean) parameter.
Map) value.public int getCurrentRunFinishedCycles()
int) value.setCurrentRunFinishedCycles(int)public int getCurrentRunTotalCycle()
int) value.setCurrentRunTotalCycle(int)public java.lang.String getLatestTagReportTimestamp()
String) value.setLatestTagReportTimestamp()public NotificationService getNotificationService()
NotificationService) value.public java.lang.String getPrefix()
getPrefix in interface IRfidInventoryBenchmarkReaderString) value.public boolean isBenchmarkEnabled()
isBenchmarkEnabled in interface IRfidInventoryBenchmarkReaderboolean) value.protected boolean isBenchmarkRunStopped()
boolean) value.setBenchmarkRunStopped(boolean)public boolean isTagreadStarted()
isTagreadStarted in interface IRfidInventoryBenchmarkReaderboolean) value.
public void notificationReceived(java.lang.String externalKey,
java.util.Dictionary data)
externalKey - The external key (String) parameter.data - The data (Dictionary) parameter.benchmarkReportReceived(Map)
protected void sendRequest(java.lang.String topic,
java.lang.Object request)
topic - The topic (String) parameter.request - The request (Object) parameter.protected void setBenchmarkRunStopped(boolean benchmarkRunStopped)
benchmarkRunStopped - The benchmark run stopped (boolean) parameter.isBenchmarkRunStopped()public void setBenchmarkState(java.lang.Boolean benchmarkEnabled)
benchmarkEnabled - The benchmark enabled (Boolean) parameter.public void setBenchmarking(boolean state)
setBenchmarking in interface IRfidInventoryBenchmarkReaderstate - The state (boolean) parameter.public void setCurrentRunFinishedCycles(int currentRunFinishedCycles)
currentRunFinishedCycles - The current run finished cycles (int) parameter.getCurrentRunFinishedCycles()public void setCurrentRunTotalCycle(int currentRunTotalCycle)
currentRunTotalCycle - The current run total cycle (int) parameter.getCurrentRunTotalCycle()public void setLatestTagReportTimestamp()
getLatestTagReportTimestamp()public void setTagreadState(java.lang.Boolean tagreadStarted)
tagreadStarted - The tagread started (Boolean) parameter.
protected void singleBenchmarkRun(long duration,
long delay)
duration - The duration (long) parameter.delay - The delay (long) parameter.
public boolean startBenchmarkRuns(int cycles,
long duration,
long delay)
startBenchmarkRuns in interface IRfidInventoryBenchmarkReadercycles - The cycles (int) parameter.duration - The duration (long) parameter.delay - The delay (long) parameter.
boolean) value.stopBenchmarkRuns()public void stopBenchmarkRuns()
stopBenchmarkRuns in interface IRfidInventoryBenchmarkReaderstartBenchmarkRuns(int,long,long)
|
2009-10-01 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||