net.tinyos.tinydb
Class CmdLineOutput

java.lang.Object
  |
  +--net.tinyos.tinydb.CmdLineOutput
All Implemented Interfaces:
ResultListener

public class CmdLineOutput
extends java.lang.Object
implements ResultListener

CmdLineOutput runs queries and displays results on the command line.


Constructor Summary
CmdLineOutput(net.tinyos.tinydb.TinyDBNetwork nw, java.lang.String queryString)
          Constructor -- runs the specified query using the provided network interface.
 
Method Summary
 void addResult(net.tinyos.tinydb.QueryResult qr)
          ResultListener method that is called whenever a query result arrives for us This method just prints each result out on the command line.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmdLineOutput

public CmdLineOutput(net.tinyos.tinydb.TinyDBNetwork nw,
                     java.lang.String queryString)
Constructor -- runs the specified query using the provided network interface.

Parameters:
nw - A network interface for talking with the basestation / parsing results.
queryString - the query to run.
Method Detail

addResult

public void addResult(net.tinyos.tinydb.QueryResult qr)
ResultListener method that is called whenever a query result arrives for us This method just prints each result out on the command line.

Specified by:
addResult in interface ResultListener
Parameters:
qr - A query result that just arrived