de.lmu.ifi.dbs.elki.application.jsmap
Class JSONResultHandler

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.application.jsmap.JSONResultHandler
All Implemented Interfaces:
ResultHandler, ResultProcessor, InspectionUtilFrequentlyScanned, Parameterizable

public class JSONResultHandler
extends Object
implements ResultHandler

Handle results by serving them via a web server to mapping applications.


Nested Class Summary
static class JSONResultHandler.Parameterizer
          Parameterization class
 
Field Summary
private  int port
          Listen port
private  JSONWebServer server
          The actual web server
 
Constructor Summary
JSONResultHandler(int port)
          Constructor.
 
Method Summary
 void processNewResult(HierarchicalResult baseResult, Result newResult)
          Process a result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

server

private JSONWebServer server
The actual web server


port

private int port
Listen port

Constructor Detail

JSONResultHandler

public JSONResultHandler(int port)
Constructor.

Parameters:
port - Port to listen on
Method Detail

processNewResult

public void processNewResult(HierarchicalResult baseResult,
                             Result newResult)
Description copied from interface: ResultProcessor
Process a result.

Specified by:
processNewResult in interface ResultProcessor
Parameters:
baseResult - The base of the result tree.
newResult - Newly added result subtree.

Release 0.4.0 (2011-09-20_1324)