phgrid wiki

Detection Service Registry Entry

Description
This service runs JHUAPL Detection Algorithms.  Currently the Temporal Detection Algorithm is implemented via the runTemporalDetection web service method.  runTemporalDetection takes a start date and an array of counts per day, and returns an array of p-values, color codes (2 = yellow, 3 = red), and expected counts per day.


Access
The Detection Service is a secure grid web service.  To gain access please contact Nathaniel Tabernero.

Client Instructions
A client may be downloaded here: detectorGridServiceClient.zip.  This client sends a test set of counts to the service and prints out the results.  To run this client, execute the following in a command window:
  1. grid-proxy-init    (this will create a proxy cert)
  2. ant                  (this will execute the client via build.xml)
  3. Detection results should be printed out.
The client maybe used programmatically to pass in your own data.  The Java code to do that would look something like:

DetectorServiceClient client = new DetectorServiceClient("http://essence9.jhuapl.edu:8080/wsrf/services/jhuapl/DetectorService");
Date startDate = //put startDate here or get it from somewhere
double counts[] = //put counts here or get it from somewhere

TemporalDetectionResult detectionResults[] = client.runTemporalDetection(startDate, counts);
 
//Do something with the detectionResults - maybe print it out or save to a file
if (detectionResults != null) {
      for (int i = 0; i < detectionResults.length; i++) {
         System.out.println("detectionResults["+i+"]:color="
           + detectionResults[i].getColor()
           + ",detectionLevel="+detectionResults[i].getDetectionLevel()
           + ",expected="
           + detectionResults[i].getExpectedCount());
      }
}

Attachments (1)

  • detectorGridServiceClient.zip - on Feb 19, 2009 12:32 PM by Nathaniel Tabernero (version 1)
    2221k Download

Recent site activity

Disclaimer

Please note that as part of the collaborative nature of this initiative, the content in this site may include submissions from employees or contractors of the Centers for Disease Control and Prevention/the Agency for Toxic Substances and Disease Registry. The opinions / findings are those of the submitter(s), and do not necessarily represent the official position of the Centers for Disease Control and Prevention/the Agency for Toxic Substances and Disease Registry.

All submitters must agree and adhere to the Code of Conduct posted on this site. All submissions are examined in a timely fashion to assure compliance with the stated code of conduct. Those not found to be in compliance are promptly removed.