|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.tinyos.tinydb.TinyDBMain
TinyDBMain creates the main UI for the TinyDB java classes.
Field Summary | |
static int |
DATA_SIZE
|
static net.tinyos.message.MoteIF |
mif
|
static int |
MSG_SIZE
|
static net.tinyos.tinydb.TinyDBNetwork |
nw
|
Constructor Summary | |
TinyDBMain()
|
Method Summary | |
static void |
addQueryListener(net.tinyos.tinydb.QueryListener ql)
Register the specified QueryListener. |
static void |
initMain()
Initialize the static variables that TinyDB needs to have set up to run Note that this does not show any of the TinyDB UI, so it can be used in apps that have their own user interface |
static void |
initMain(java.lang.String configFileName)
Initialize the static variables that TinyDB needs to have set up to run Note that this does not show any of the TinyDB UI, so it can be used in apps that have their own user interface |
static void |
injectQuery(net.tinyos.tinydb.TinyDBQuery q,
net.tinyos.tinydb.ResultListener rl)
Helper routine to handle the common steps in sending a query into the network. |
static void |
main(java.lang.String[] args)
|
static void |
notifyAddedQuery(net.tinyos.tinydb.TinyDBQuery q)
Notify all currently registered QueryListeners with a addQuery message |
static void |
notifyRemovedQuery(net.tinyos.tinydb.TinyDBQuery q)
Notify all currently register QueryListeners with a removeQuery message |
static void |
removeQueryListener(net.tinyos.tinydb.QueryListener ql)
Deregister the specified QueryListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static net.tinyos.message.MoteIF mif
public static net.tinyos.tinydb.TinyDBNetwork nw
public static final int DATA_SIZE
public static final int MSG_SIZE
Constructor Detail |
public TinyDBMain()
Method Detail |
public static void main(java.lang.String[] args)
args
- the command line argumentspublic static void initMain(java.lang.String configFileName) throws java.io.IOException
java.io.IOException
public static void initMain() throws java.io.IOException
java.io.IOException
public static void injectQuery(net.tinyos.tinydb.TinyDBQuery q, net.tinyos.tinydb.ResultListener rl) throws java.io.IOException
q
- The query to injectrl
- The result listner to receive (processed) results from
this query.
java.io.IOException
public static void addQueryListener(net.tinyos.tinydb.QueryListener ql)
public static void removeQueryListener(net.tinyos.tinydb.QueryListener ql)
public static void notifyAddedQuery(net.tinyos.tinydb.TinyDBQuery q)
public static void notifyRemovedQuery(net.tinyos.tinydb.TinyDBQuery q)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |